To build the FTP service under CentOS, proceed as follows.
1. Check if VSFTPD is installed and install VSFTPD if not installed.
1) to see if VSFTPD is installed on the system, you can execute the command: RPM-QA | grep vsftpd
2) If VSFTPD is not installed, install: Yum-y installed VSFTPD
2, create FTP users, such as Ftp_test. Command: useradd-s/sbin/nologin-d/home/ftp_test ftp_test
Attention:
1) directory try not to choose the root directory, here is/home/ftp_test, and ftp_test This directory do not create manually, or permissions will be a problem, the execution of the command will be automatically created
2) Pay attention to the permissions of the directory, if necessary, should set the appropriate permissions
3. Create a password for ftp_test users. Command: passwd ftp_test
After execution, enter 2 password confirmations to set the password.
4. Edit vsftpd configuration file, command: vim/etc/vsftpd/vsftpd.conf
Find anonymous_enable This configuration item, the default is yes, modified to No, indicating that anonymous users are not allowed to log on.
5, Start vsftp Service, command: Systemctl start Vsftpd.service
6. View the status of the FTP service, command: Systemctl status Vsftpd.service
7, the FTP client for connection access.
Reference: https://www.cnblogs.com/freeweb/p/6518257.html
The open and Close commands for the FTP service:
Open: # service VSFTPD start
Close: # service VSFTPD Stop
FTP Server Setup under Linux