centos 7 temporary and permanent closure Selinux

1. Temporary and permanent closure Selinux

[root@localhost ~]# getenforce
Enforcing

[root@localhost ~]# setenforce 0
[root@localhost ~]# getenforce
Permissive

 

Permanent closure:

[root@localhost ~]# vim /etc/sysconfig/selinux

SELINUX=enforcing 改为 SELINUX=disabled

Restart Services reboot

Guess you like

Origin www.cnblogs.com/lyss/p/12122904.html