systemctl stop firewalld //停止防火墙
systemctl disable firewalld //关闭防火请开机启动
setenforce 0 //内核设置为宽容模式
sed -i "s/SELINUX=enforcing/SELINUX=disabled/" /etc/selinux/config //相当于编辑配置文件/etc/selinux/config 文件 将SELINUX=enforcing 改为 SELINUX=disabled
systemctl stop firewalld
systemctl disable firewalld
setenforce 0
sed -i "s/SELINUX=enforcing/SELINUX=disabled/" /etc/selinux/config