1, installation vsftpd
# yum Install vsftpd
2. Start VSFTPD
# service VSFTPD Start
3. Turn off the firewall
# Service Iptables Stop
You can log on anonymously at this time.
4. Turn off SELinux
# Vi/etc/selinux/config
Selinux=disabled
# Setenforce 0
5. Create user
Because the VSFTPD default is not allowed to log in with the root user, you have to create a new user
# Useradd Doiido
# passwd
6. Create the specified directory and give permissions
# mkdir-p/doiido/web/www
# chmod 777/doiido/web/www/
7. Modify the configuration file
# vi/etc/vsftpd/vsftpd.conf
#将所有的都删除, and then add the following parameters anonymous_enable=nolocal_enable=yeswrite_enable=yeslocal_umask=022dirmessage_enable= Yesconnect_from_port_20=yesxferlog_std_format=yeslisten=yespam_service_name=vsftpduserlist_enable=yestcp_ Wrappers=yeschroot_local_user=yeslocal_root=/doiido/web/www
8. Restart the VSFTPD service
# Service VSFTPD Restart
At this point, you can log in with a local user and lock in the/doiido/web/www directory after logging in
9. Set Boot from boot
# Chkconfig VSFTPD on
So you don't have to start every time you boot VSFTPD
Linux under VSFTPD installation configuration FTP server