临时和永久关闭Selinux


2019年12月10日 11:05     admin

临时关闭:

  1. [root@localhost ~]# getenforce
  2. Enforcing
  3. [root@localhost ~]# setenforce 0
  4. [root@localhost ~]# getenforce
  5. Permissive

永久关闭:

  1. [root@localhost ~]# vim /etc/sysconfig/selinux
  2. SELINUX=enforcing 改为 SELINUX=disabled
  3. 重启服务reboot