这一期我们将在Ubuntu上搭建一个ftp服务器。这样我们就可以随时在ftp服务器上下载或上传文件了。先打开我们的Ubuntu并打开终端-
Installing Vsftpd:sudo apt-get Install VSFTPD
Then we use: Cat/etc/group View user group information can see more FTP user groups-
CD/ETC to/etc directory Cat passwd View user information, you can see more FTP users-
VSFTPD after installation, we can find the FTP configuration file in the/etc directory vsftpd.conf
Configure vsftpd.conf
vim/etc/vsftpd.conf Edit vsftpd.conf File:
If you have: Sudo:vim: Command not found try sudo apt-get install vim installation vim
Note: You can find the appropriate options to modify or add them directly later. "#" is the line comment for the configuration file.
Allow anonymous users to log on:
Anonymous_enable=yes
Allow local users to log on:
Local_enable=yes
To turn on global uploads:
Write_enable=yes
Allow anonymous users to upload files:
Anon_upload_enable=yes
Allow anonymous users to create a new folder:
Anon_mkdir_write_enable=yes
Wait a minute
Note: The directory location of the FTP server is in/srv/ftp, which is also the root directory when anonymous users visit.
The sudo above appears to give Superuser privileges. Here the FTP server is set up, let's try the effect. Input directive: Ifconfig View Network Information-
You can see the IP address of this machine after the "inet address":. *.*** Note: The next test is based on the IP that is displayed on your own computer. Then open the FTP software on the computer, enter the host-your IP, user name-ubuntu login username, password-ubuntu login password, port does not fill or fill 21. Connection
You can see that we have successfully connected to the newly built FTP server.
Note: The above mentioned VIM we will introduce its usage in the next issue.
Follow public number Abytec, reply "FileZilla" Get FileZilla Share Link
--作者水平有限,如有错误敬请指出,感激不尽
Ubuntu Build FTP Server