CentOS安装配置VSFTP
安装
首先yum安装
1 | yum -y install vsftpd |
启动vsftp
1 | service vsftpd start |
设置开机自启
1 | chkconfig vsftpd on |
配置
1 | vim /etc/vsftpd/vsftpd.conf |
禁止匿名访问:改成NO
1 | anonymous_enable=YES |
这两行去掉注释(删除#)
1 | chroot_list_enable=YES |
(这样登录FTP
的用户名加入etc/vsftpd/chroot_list
中 会被限制在家目录下)
注意:添加用户后需要:编辑/etc/vsftpd/
下的chroot_list
,添上刚添加的用户名
1 | vim /etc/vsftpd/chroot_list |
:wq保存
重启VSFTP
1 | service vsftpd restart |
添加用户等操作可以参考:CenOS
服务器LAMP
环境日常管理,vsftp
创建FTP
用户,apache
添加网站,压缩解压