sudo apt-get update
sudo apt-get install vsftpd
sudo vi /etc/vsftpd.conf
listen=YES anonymous_enable=YES local_enable=YES write_enable=YES chroot_local_user=YES
sudo service vsftpd restart
测试ftp
ftp localhost
账号:anonymous
密码:空
quit
添加ftp用户
参考:https://www.godaddy.com/help/how-to-set-up-an-ftp-server-on-ubuntu-1404-12301