Under root privileges, install vsftp with the following command:
Yum Install vsftpd
Use the RPM command to see if VSFTPD is already installed:
rpm-qa| grep vsftpd
Before starting the VSFTPD service, you need to log in to the cloud server to modify the configuration file and disable anonymous logins.
1, open the configuration file, the command is as follows:
Vim/etc/vsftpd/vsftpd.conf
In the configuration file, the 11th line of "Anonymous_enable=yes" changed to "Anonymous_enable=no", will be anonymous login disabled.
The X button is the backspace in Vim, and when finished, press ESC: Key input Wq Save exit
2, read the effective configuration.
Cat/etc/vsftpd/vsftpd.conf |grep^[^#] Anonymous_enable=nolocal_enable=yeswrite_enable=Yeslocal_umask=022anon_upload_enable=yesanon_mkdir_write_enable=Yesanon_umask=022dirmessage_enable=yesxferlog_enable=yesconnect_from_port_20=Yesxferlog_std_format=Yeslisten=Yespam_service_name=vsftpduserlist_enable=yestcp_wrappers=yes
4. Start the VSFTPD service
Service VSFTPD Start
5. Set the FTP user account. Once the setup is successful, you can log in to the FTP server via this account.
(1) Set the FTP user's account, for example, the account is "user1", the directory is/home/user1, and the settings are not allowed to login via SSH.
Useradd-m-d/home/user1-s/sbin/nologin User1
(2) Set the password for the account
passwd User1
CentOS 7.1 Cloud Server configuration FTP server vsftpd