Step one: See if the server is installed VSFTPD
Rpm-qa | grep vsftpd
View the SELinux configuration
Vim/etc/selinux/config
Modify the SELinux value to Disabled
Step Two: Install the VSFTPD service
Yum Install-y vsftpd
Step Three: Modify the configuration file
Vim/etc/vsftpd/vsftpd.conf
Vsftpd.conf parameter Description
Anonymous_enable=yes/no whether to allow anonymous logons
Anon_root=/opt/vsftp Anonymous Login The default home directory
Chroot_local_user whether to restrict all users to the home directory, yes to enable no disable. (The default value is no, that is, the FTP user can switch up to the directory if not configured after installing VSFTPD)
Chroot_list_enable whether to start the Restricted Users list Yes to enable no disable (including commented out and disabled)
Chroot_list_file whether to limit the list of users in the home directory
Fourth step: Add an FTP user
Useradd ftpuser-s/sbin/nologin-d/opt/vsftp/ftpuser//Add Ftpuser user, the default home directory for this user is/opt/vsftp/ftpuser
Test method:
1, enter on the server: FTP 127.0.0.1 Enter, prompt for user name password, see if the normal login, if there is a problem, specifically in the troubleshooting
2, server-side login no problem, and then use the client to access, see if it is normal.
Precautions:
FTP home directory cannot be set to 777 permissions, need to set to 755 permissions, otherwise it will report an error
If there is a problem in the configuration process, please leave a message.
Installing VSFTP services under Linux