为了局域网方便访问ubuntu系统,在ubuntu14.04上安装了tfp和tftp服务。在windows端用FileZilla、FlashFXP、xFTP、CuteFTP等等访问都很方便。
一、安装ftp服务器
- 安装vsftpd:
apt-get install vsftpd
检查端口
netstat -tnl
ftp默认打开的是21端口,看下对应21端口的服务有没有打开。
或者直接在浏览器里输入“ftp://服务器IP”,会有相关提示的。
开启、停止、重启vsftpd服务的命令:
service vsftpd start | stop | restart
- 修改配置文件
vim /etc/vsftpd.conf
vsftpd.conf主要配置:
# Example config file /etc/vsftpd.conf
listen=YES
anonymous_enable=NO #禁止匿名登录
local_enable=YES #本地用户可以登录
write_enable=YES #允许写操作,包括上传,修改等
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES #显示目录信息
use_localtime=YES #使用