#一/安装
采用如下命令安装ftp服务器
sudo apt install vsftpd
#二、软件管理
service vsftpd start 启动
service vsftpd restart 重启
service vsftpd stop 停止
service vsftpd status 查看状态
#匿名访问方式
修改配置文件
gedit /etc/vsftpd.conf
并写入配置
anonymous_enable=YES
anon_root= /data/pub
local_enable=YES
anon_upload_enable=YES
anon_mkdir_write_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
listen=YES
#listen_ipv6=NO
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
重启服务器
创建文件夹和文件
mkdir -p /data/pub
touch /data/pub/a.txt
chmod -R 777 /data
chmod a-w /data/pub
serv