ftp搭建

ftp服务器搭建
  1.安装vsftpd软件
  yum install vsftpd 
  2.启动服务
  systemctl start vsftpd.service
  systemctl restart vsftpd.service #重启
  3.查看服务
  systemctl status vsftpd
  4.文件路径
  /var/ftp/pub

防火墙

  启动: systemctl start firewalld
  关闭: systemctl stop firewalld
  查看状态: systemctl status firewalld 
  开机禁用 : systemctl disable firewalld
  开机启用 : systemctl enable firewalld

关闭SELINUX
  getenforce 查看状态 Disabled关闭,Enabled激活
  setenforce 0 临时关闭,重启失效
  vim /etc/sysconfig/selinux 修改SELINUX=disabled,重启不开启服务
  iptables关闭
  chkconfig iptables off 临时关闭,重启失效
  service iptables stop 关闭服务,重启不开启服务
  iptables -vnL 查看状态

原文地址:https://www.cnblogs.com/tony3154/p/10126387.html