1. Conditions for installing the FTP server
Computer networking
2. Run the following command:
3. Configure vsftpd. conf
Command: sudo VI/etc/vsftpd. conf
Add the following configuration in the configuration file (vsftpd. conf:
Note that anno_root =/home/toto/FTP must contain the FTP folder, and the folder must have the same permissions as normal files. Cannot be the maximum permission (anonymous users are not allowed to write this directory)
4. Restart the server and reload the/etc/vsftpd. conf configuration file.
Ubuntu12.04 or earlier versions (earlier versions)
Sudo/etc/init. d/vsftpd restart
Ubuntu14.04 or earlier versions
Sudo/lib/init/upstart-job vsftpd restart
5. Go to your/home/xingwenpeng/FTP directory and create an empty directory for users to upload. This directory is not necessarily the FTP name, also, this directory should not be created by the root user, but by the common user.
Cd ~ /Ftp
Mkdir anonymous directory for users to upload.
Chmod 777 anonymous sets the permission of this directory to the maximum permission.
As follows:
5. Test the upload function. log on to the FTP server and go to the anonymous directory.
Note: Before testing, check whether the network is accessible.
Ftp ip address (the IP address here is not a command, but the FTP directory of the link to be written)
CD Anonymous
6. After Entering the anonymous directory, you can upload the files in your current directory to the anonymous directory on the FTP server.
Upload and download commands
Put uploaded file name
Get download file name
7ftp Client
By default, the FTP client is installed on Ubuntu.
8lftp Client
Installation command:
Sudo apt-Get install lftp
Lftp is also an FTP client program. It operates in text mode, but is more convenient than graphic interfaces. Lftp supports almost all convenient bash functions, including TAB completion, Bookmark, queue, and background download. The usage is similar to that of FTP. The main execution is as follows:
Example of mput ,:
9. The command for logging out of FPT is:
A: Exit
B: Bye
C: Quit
Build an FTP server in Ubuntu