First, firewall open 21 port
Second, the creation of the FTP user, after creating the user in the/etc/passwd is presented in this way: Ftpuser:x:1008:1008::/var/www/html:/sbin/nologin
Third, yum list |grep vsftpd find the package name and install it using Yum
Iv. Edit the configuration file/etc/vsftpd/vsftpd.conf, write the following:
# 1. Anonymous Logon is not allowed
Anonymous_enable=no
# 2. Entity User Configuration, writable and Umask to 002
Local_enable=yes
Write_enable=yes
local_umask=002
Userlist_enable=yes
Userlist_deny=yes
Userlist_file=/etc/vsftpd/user_list here is not allowed to login FTP user, this file must exist
# 3. Service-related configuration
Use_localtime=yes
Dirmessage_enable=yes
Xferlog_enable=yes
Connect_from_port_20=yes
Xferlog_std_format=yes
Listen=yes
Pam_service_name=vsftpd
Tcp_wrappers=yes
Banner_file=/etc/vsftpd/welcome.txt Welcome Word, this file must exist
V. Start the service, client test can log in
Systemctl Enable VSFTPD service boot from
Systemctl Start vsftpd Startup service
To test for access on a Windows computer, double-click the computer to enter the IP address of Ftp://FTP/
CentOS 7 Installation and configuration vsftpd