https://bbs.aliyun.com/read/534639.html?spm=5176.bbsr539360.0.0.BBXGIs
固定在一个目录下
https://www.iyunv.com/thread-352895-1-1.html
CentOS7安装FTP(vsftpd)配置chroot_local_user=YES后启动失败
安装vsftpd
yum install -y vsftpd
编辑ftp配置文件
vi /etc/vsftpd/vsftpd.conf
anonymous_enable=NO
anonymous_enable=YES
chroot_local_user=YES
去掉前面的注释
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
不受限制的用户列表,用不用都OK
allow_writeable_chroot=YES
加上这行解决了无法登陆的问题
启动/开机启动ftp
systemctl start vsftpd.service #启动
systemctl enable vsftpd.service #设置vsftpd开机启动