1. Use rpm-qa| First The grep vsftpd command checks whether the installation is installed, and if FTP is not installed, use the Yum-y install VSFTPD installation (Ubuntu apt-get install)
After the installation, we will configure it for normal use. Edit the VSFTPD configuration file vi/etc/vsftpd/vsftpd.conf
VI Editor in the search mission is a slash "/", and then enter the content to find, carriage return to determine. Here are the options to change
Anonymous_enable=no #禁止匿名访问
Ascii_upload_enable #允许使用ascii码上传
Ascii_download_enable #允许使用ascii码下载
Userlist_deny=no # (This need to be added manually to the end) using the FTP user table, no user needs to add to login
After the setting is complete, ESC, colon wq carriage return. Start the VSFTPD service/etc/init.d/vsftpd start and see [OK] to start successfully.
2. Service vsftpd start to enable FTP to start automatically every time, run the command: Chkconfig--level vsftpd on
3. Set FTP Permissions
Vi/etc/vsftpd/vsftpd.conf
Change Anonymous_enable=yes to Anonymous_enable=no
ESC return, enter ": Wq" Save and exit
4. Add FTP Account and directory
useradd-d/alidata/www/wwwroot-s/sbin/nologin pwftp passwd pwftp chmod-r 755/alidata/www/wwwroot chown-r pwftp /ALIDATA/WWW/WWWROOT/ETC/RC.D/INIT.D/VSFTPD restart
Then use the account number pwftp password 123456
The test will be able to log on to FTP. Directory is/alidata/www/wwwroot
Modify firewall to allow FTP to use 21 ports through
Linux firewall configuration
Shut down SELinux After restarting the Firewall service iptables restart. Otherwise, you will not be connected to FTP.
Then reboot reboot the Linux server.
I use the FLASHFXP client software connection until the user's home directory (typically located in/home/user name) appears, then vsftpd successfully installed and run. Then you can upload and download the file.