VSFTP配置
防火墙设置
查看防火墙状态
firewall-cmd --state
结果包含: running 和 no running
sudo systemctl status firewalld
停止firewall
systemctl stop firewalld.service
禁止firewall开机启动
systemctl disable firewalld.service ----active(running)就意味着防火墙打开了
sudo systemctl stop firewalld --看到inactive(dead)就意味着防火墙关闭了
查看并安装vsftpd
执行以下命令进行查看
vsftpd -v
如果没有安装的话就执行以下命令进行安装:
yum -y install vsftpd
修改vsftpd.conf文件 vi /etc/vsftpd/vsftpd.conf
把anonymous_enable=YES ,改为NO ,然后重启vsftpd
重启
systemctl restart vsftpd
查看vsftpd服务的状态
systemctl status vsftpd.service
设置开机启动
systemctl enable vsftpd.service
查看IP地址
ip addr