ubuntu搭建ftp服务器

ubuntu16.04搭建ftp服务器:

1. sudo apt-get install vsftpd   //安装

2. netstat -npl | grep :21  //查看ftp端口

3. sudo cp /etc/vsftpd.conf /etc/vsftpd_backup.conf  //最好先做个备份

4. sudo vim /etc/vsftpd.conf 

    listen=YES

    listen_ipv6=NO

    local_enable=YES

    write_enable=YES

其他的按默认的,其中当时把listen_ipv6改成YES了,导致连接ftp出现10061错误码。

5. service vsftpd restart

windows上用ftp client去连接测试:

   我使用的MobaXterm_Personal_11.1工具. 下面一张图就可以了。

ubuntu搭建ftp服务器

 进去后,之间的文件就可以互相操作了。