ubuntu16.04下ftp服务器的安装与配置

ubuntu16.04下ftp服务器的安装与配置 转载

 

由于要将本地程序上传至云服务器中,所以需要给云服务器端安装ftp服务器。记录一下ftp的安装过程,以便以后使用。服务器端所用系统为Ubuntu16.04.

1. 安装ftp服务器,

apt-get install vsftpd ftp

2. 配置ftp服务器,在/etc/vsftpd.conf中修改,注意修改前先备份一份。

cp /etc/vsftpd.conf /etc/vsftpd_bk.conf
vim /etc/vsftpd.conf

3.  

# 上面默认下不变
write_enable=YES
utf8_filesystem=YES

4. 重启ftp服务器

systemctl restart vsftpd

5. 命令行下运行试试

复制代码
zf ~ $ ftp localhost
Connected to localhost.
220 (vsFTPd 3.0.3)
Name (localhost:zf): zf 
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> 
复制代码

6. 也可以试试root用户是否可以登录,默认是不让登录的,如果要root登录的话,需要把/etc/ftpusers中的root注释掉。

复制代码
# /etc/ftpusers: list of users disallowed FTP access. See ftpusers(5).

# root
daemon
bin
sys
sync
games
man
lp
mail
news
uucp
nobody
复制代码

posted on 2019-11-07 11:14  liujx2019  阅读(310)  评论(0编辑  收藏  举报

导航