Check first, there is no vsftp server
Rpm-qa | grep *ftp*
If so, please uninstall it
Installing the VSFTPD server
Yum-y Install VSFTPD
Modifying a configuration file/etc/vsftpd/vsftpd.conf the following items
#禁止匿名访问
Anonymous_enable=no
Restrict the specified user to access other users can not access the file tail modified as follows
Userlist_enable=yes
Tcp_wrappers=yes
Userlist_deny=no
Userlist_file=/etc/vsftpd/vsftpd.user_file
Set users to access only their own host directory Chroot
Chroot_local_user=yes
For better security, you can modify the VSFTPD port "do not modify"
LISTEN_PORT=2001 Custom FTP port write more than 1024 ports "look at your personal needs, don't mess up"
Create the desired user (example for creating two users)
Useradd ftpuser1-s/sbin/nologin-d/web/aa
passwd Ftpuser1
Useradd ftpuser2-s/sbin/nologin-d/web/bb
passwd Ftpuser2
Vim/etc/vsftpd/vsftpd.user_file
Ftpuser1
Ftpuser2
And then start the FTP
Service vsftpd start or/etc/rc.d/init.d/vsftpd start
Add FTP to boot vim/etc/rc.local
Add to
/ETC/RC.D/INIT.D/VSFTPD start
OK, configuration complete, others according to their own need to modify it