FTP的搭建
1.配置yum源
/etc/yum.repos.d/
====================================================
vstfpd部署安装
利用yum源安装vsftpd
yum install vsftpd -y
修改配置文件
anon_root=/opt
匿名用户访问opt目录
启动ftp服务和关闭linux防火墙
查看vsftpd端口
限制用户访问家目录
修改配置文件
#anon_root=/opt
anonymous_enable=NO
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
利用/检索
添加限制文件
重启vsftpd服务
systemctl restart vsftpd