One. CentOS Installation FTP
Linux Installation FTP
The first step
Use the following command #rpm-qa |grep VSFTPD can detect if the VSFTPD software is installed,
Rpm-qa |grep vsftpd
If it is not installed, install it using the Yum command.
Yum Install Vsftpd-y
Step Two
Using VSFTPD software, mainly includes the following commands:
Start ftp command #service vsftpd start stop ftp command #service vsftpd stop
Step Three
Configuration of the VSFTPD
There are three main FTP configuration files, which are located in the/etc/vsftpd/directory, respectively:
Ftpusers This file is used to specify that those users cannot access the FTP server.
User_list the default account that the file uses to indicate that the FTP is not accessible by default
Vsftpd.conf VSFTPD's master configuration file
Fourth Step
Take the anonymous user as an example, we remove the configuration file vsftpd.conf the following
cd/etc/vsftpd/ ls vi vsftpd.conf
Modify the file and put these 2 comments out
Anon_upload_enable=yes Anon_mkdir_write_enable=yes
Two previous # numbers, you can complete the configuration of anonymous users, the anonymous user can log in both upload, download files. Remember to restart the service after modifying the configuration file.
Fifth step: Allow the root user to log in remotely using FTP
cd/etc/vsftpd/
Then modify the two files and comment out the root.
Vim Ftpusers #把root注释掉就可以了
Vim User_list # to comment out the root
Restart FTP command #service vsftpd restart
Test:
Using CuteFTP or other FTP tools, you can:
Two. Uploading Files
go to the home directory and upload files from the published directory
CentOS deployment NetCore-3. Deploy site