# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
# uname -r
3.10.0-514.el7.x86_64
# setenforce 0
# sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config
# firewall-cmd --get-service //查看在firewall中的服务名称
# firewall-cmd --zone=public --permanent --add-service=ftp //打开ftp服务
# firewall-cmd --reload //重新载入,更新防火墙规则
# systemctl restart firewalld //重启防火墙
# firewall-cmd --state //查看firewall的状态
# yum -y install vsftpd
# getsebool -a | grep ftp
getsebool: SELinux is disabled
来源 http://www.linuxidc.com/Linux/2017-06/144886.htm