1. #安装Linux的bash补全插件
    2. yum install -y bash-completion
    3. source /etc/profile
    4. #安装vsftpd
    5. yum install -y vsftpd
    6. #查找一下安装路径
    7. find / -name vsftpd
    8. #配置vsftpd配置文件
    9. vim /etc/vsftpd/vsftpd.conf
    10. #禁用匿名登录
    11. anonymous_enable=NO
    12. pam_service_name=vsftpd
    13. userlist_enable=YES
    14. tcp_wrappers=YES
    15. local_root=/home/vsftpd
    16. chroot_local_user=YES
    17. #配置userlist
    18. vim /etc/vsftpd/user_list
    19. yum install -y lrzsz
    20. #安装nginx编译安装需要的依赖包
    21. yum install -y gcc-c++
    22. yum install -y pcre pcre-devel
    23. yum install -y zlib zlib-devel
    24. yum install -y openssl openssl-devel
    25. #解压nginx,tg包
    26. tar -zxvf nginx-1.19.10.tar.gz
    27. cd nginx-1.19.10/
    28. ./configure --prefix=/opt/nginx --pid-path=/var/run/nginx/nginx.pid --lock-path=/var/lock/nginx.lock --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --with-http_gzip_static_module --http-client-body-temp-path=/var/temp/nginx/client --http-proxy-temp-path=/var/temp/nginx/proxy --http-fastcgi-temp-path=/var/temp/nginx/fastcgi --http-uwsgi-temp-path=/var/temp/nginx/uwsgi --http-scgi-temp-path=/var/temp/nginx/scgi
    29. make
    30. make install
    31. #配置nginx主配文件
    32. vim /opt/nginx/conf/nginx.conf
    33. user root;
    34. location / {
    35. root /home/vsftpd;
    36. autoindex on;
    37. }
    38. mkdir -p /var/temp/nginx/client
    39. /opt/nginx/sbin/nginx
    40. /opt/nginx/sbin/nginx -s reload