1、关闭SELinux:
setenforce 0
修改配置文件:将SELINUX=enforcing改为SELINUX=disabled
vi /etc/selinux/config
查看selinux状态: getenforce
2、关闭防火墙:
systemctl disable firewalld #开启自动关闭防火墙
systemctl stop firewalld #停止防火墙服务
3、关闭网络管理服务:
systemctl stop NetworkManager && systemctl disable