Contents
  1. 1. 安装
  2. 2. 配置

安装

首先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
2
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list

(这样登录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添加网站,压缩解压

Contents
  1. 1. 安装
  2. 2. 配置