systemctl stop firewalld.service
systemctl disable firewalld.service
vi /etc/sysconfig/selinux 修改SELINUX=enforcing为SELINUX=disabled
setenforce 0
getenforce
参考地址:https://zhuanlan.zhihu.com/p/33737810