文章目录
一、 ftp安装配置方法
安装:
yum -y install ftp 客户端
yum -y install vsftpd 服务端
删除:
// yum -y remove ftp 客户端
// yum -y remove vsftpd 服务端
配置:
ftp>passive :切换主动模式与被动模式(passive为on时,被动模式开启)
1、防火墙服务相关操作
systemctl start firewalld.service //启动防火墙
//systemctl stop firewalld.service //关闭防火墙
//systemctl restart firewalld.service //重启防火墙
//systemctl startus firewalld.service //查看防火墙状态
2、防火墙开启20和21端口
//被动模式只需开启21端口(一般情况下,被动模式较好,主动模式应用范围窄)
//firewall-cmd --zone=public --add-port=20/tcp --permanent
firewall-cmd --