安装Vsftpd
提前关闭selinux 和firewalld防火墙
1.安装vsftp软件包
$ yum -y install vsftpd*
2.启动vsftpd服务器
$ systemctl restart vsftpd
$ systemctl enable vsftpd
3.检查服务是否正常启动
$ ps -ef|grep vsftp && netstat -tunlp|grep 21
至此 匿名用户的ftp已经搭建完成
去windos客户端查看
/var/ftp/pub/ #linux服务上的原始目录
ftp://192.168.118.172/ #windos客户端访问的目录,没有用户名和密码
![5408052f4daa56cbb02de7025d05deee.png](https://img-blog.csdnimg.cn/img_convert/5408052f4daa56cbb02de7025d05deee.png)
image
只能查看,下载无法创建文件和目录
如果需要在windos 端上传文件则需要修改配置文件
$ vim /etc/vsftpd/vsftpd.conf
anon_upload_enable=YES #允许匿名用户上传
anon_mkdir_write_e