#安装Linux的bash补全插件
yum install -y bash-completion
source /etc/profile
#安装vsftpd
yum install -y vsftpd
#查找一下安装路径
find / -name vsftpd
#配置vsftpd配置文件
vim /etc/vsftpd/vsftpd.conf
#禁用匿名登录
anonymous_enable=NO
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
local_root=/home/vsftpd
chroot_local_user=YES
#配置userlist
vim /etc/vsftpd/user_list
yum install -y lrzsz
#安装nginx编译安装需要的依赖包
yum install -y gcc-c++
yum install -y pcre pcre-devel
yum install -y zlib zlib-devel
yum install -y openssl openssl-devel
#解压nginx,tg包
tar -zxvf nginx-1.19.10.tar.gz
cd nginx-1.19.10/
./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
make
make install
#配置nginx主配文件
vim /opt/nginx/conf/nginx.conf
user root;
location / {
root /home/vsftpd;
autoindex on;
}
mkdir -p /var/temp/nginx/client
/opt/nginx/sbin/nginx
/opt/nginx/sbin/nginx -s reload