It is necessary to configure the FTP environment. Let's start to Configure FTP. The FTP software used by my‑tuserver is: vsftpd. Install vsftpd: first, log on to UbuntuServer and run sudoapt-getupdatesudoapt-getdist-upgradesudoapt-getinstallvsftpd. After the installation is complete, vsftpd is automatically started. Configure vsft
Configure the FTP Environment
It is necessary to Configure FTP. Then, Configure FTP,
The FTP software used by my Ubuntu Server is: vsftpd.
Install vsftpd:
First, log on to the Ubuntu Server and run:
Sudo apt-get update
Sudo apt-get dist-upgrade
Sudo apt-get install vsftpd
After the installation is complete, vsftpd is automatically started.
Configure vsftpd:
Run "sudo nano/etc/vsftpd. conf". Let's modify the vsftpd configuration file to make vsftpd work as required, because the default configuration is almost unavailable;
Find the line "anonymous_enable = YES" and change "YES" to "NO", so that anonymous login is not allowed;
Find the line "# local_enable = YES" and remove the previous line # to allow local users to log on (that is, users on Ubuntu Server, such as my xkedu );
Find "local_enable = YES" and add "local_root =/var/www/". After logging on, the user will directly go to the "/var/www/" directory, by default, it is switched to the root directory, which obviously does not work;
Find "# write_enable = YES" and remove comments to enable the login user to write files. This is a required option;
Use FTP:
After simple configuration, use "sudo/etc/init. d/vsftpd restart to restart vsftpd. Next, use Gftp or another FTP tool to connect to "192.140.30.X". Enter your username and password on the Ubuntu Server. After the logon is successful, we should be able to see all the files under/var/www!
Now, uploading something to the Ubuntu Server will no longer require the scp command. Enjoy Ftp fast and convenient!
FTP is a simple introduction.