1. run the command rpm-Qa | grep vsftpd to check whether the vsftpd version is installed. if the version is already installed, the vsftpd version is displayed. if the version is not displayed, the vsftpd version is not installed. if FTP is not installed, run the Yum-y install vsftpd command to install it. (use apt-Get install vsftpd in Ubuntu) 3. start the vsftpd Command Service vsftpd start4. to enable the FTP to be automatically started every time it is started, run the command chkconfig -- level 35 vsftpd on5. set the FTP permission and run the command VI/etc/vsftpd. conf open the configuration file, change anonymous_enable = Yes (Allow anonymous users to log on) to anonymous_enable = No Press ESC, then enter: WQ press enter to save and release, Press ESC without saving and enter: Q! 6. add the FTP directory and account command useradd-D/usr/local/Apache/htdocs newuser (if the directory already exists, a warning will be prompted, don't Worry) 7. change Password command passwd newuser8. Change directory permission command chmod-r 777/usr/local/Apache/htdocs9. assign directory to newuser command chown-r newuser/usr/local/Apache/htdocs10. allow upload Command setsebool allow_ftpd_full_access 111. restart the FTP Command Service vsftpd restart and use the account: newuser password: As set just now, you can log on to FTP in the test. The directory is/usr/local/Apache/htdocs. If the directory cannot be accessed, open the public area of the Linux firewall to allow the FTP service, or directly disable the firewall Command Service iptables stop.