CentOS7 minimal 关闭 firewall NetworkManager selinux

  • 关防火墙(所有节点)
  1. 停止firewall
    systemctl stop firewalld.service
  2. 禁止firewall开机启动:
    systemctl disable firewalld.service
  3. 停止 NetworkManager
    systemctl stop NetworkManager
  4. 禁止NetworkManager
    systemctl disable NetworkManager
    注:关闭NetworkManager 会导致自动网络如无线网失败
  5. 关闭 selinux
    vi /etc/selinux/config
#SELINUX=enforcing
SELINUX=disabled
  1. 重启
  • 查看selinux状态

getenforce

你可能感兴趣的:(CentOS7 minimal 关闭 firewall NetworkManager selinux)