临时和永久关闭Selinux

临时关闭:linux

[root@localhost ~]# getenforce
Enforcingvim

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

 

永久关闭:get

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

SELINUX=enforcing 改成 SELINUX=disableddi

重启服务rebootvi

相关文章
相关标签/搜索