1.yum Install VSFTPD
2.service vsftpd Restart test is installed successfully
Shutting down VSFTPD: [OK]
Starting vsftpd for VSFTPD: [OK]
OK indicates that the restart was successful.
3, Configuration vsftpd
After installation, we need to configure it for normal use. Edit the VSFTPD configuration file vi/etc/vsftpd/vsftpd.conf
The search mission in the VI editor is a slash "/", then enter what you want to find, and the carriage return is OK. 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 in the table needs to be added to log in
。 Start the VSFTPD service/etc/init.d/vsftpd start and see [OK] to start successfully.
Just start up not yet, and add it to boot auto start, chkconfig vsftpd on
4, add boot is no prompt, if not sure if you have joined the boot entry can run chkconfig–list to view.
Add users to it after installation and configuration to use, here to add users Baidu as an example. Useradd Baidu Enter, and then for Baidu This user add password passwd Baidu, will be prompted to enter the password two times. We then add the Baidu user to the FTP user table. Vi/etc/vsftpd/user_list, the other initial users to delete all, add just our new Baidu user.
Userlist_enable=yes Comment out
5. Linux off SELinux
Temporary shutdown (without restarting the machine):
Setenforce 0 # #设置SELinux become permissive mode
# #setenforce 1 set SELinux to become enforcing mode
Modifying the configuration file requires restarting the machine:
Modify the/etc/selinux/config file
Change Selinux=enforcing to Selinux=disabled
Restart the machine
Linux installation vsftpd steps