简易配置,建议内网使用,存放公共数据。
环境Centos7
yum -y install vsftpd
mkdir -p /ftp/
touch /ftp/test.sh
echo 'anon_root=/ftp/' >> /etc/vsftpd/vsftpd.conf #设置匿名访问目录
systemctl stop firewalld //临时关闭防火墙
systemctl disable firewalld //禁止开机启动防火墙
systemctl start vsftpd
wget ftp://192.168.56.113/test.sh