欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

临时和永久关闭Selinux 有大用

临时和永久关闭Selinux

2018年01月08日 22:29:35 xin_y 阅读数:39857            


临时关闭:

[root@localhost ~]# getenforce
Enforcing
               

[root@localhost ~]# setenforce 0            # 0 的结果是 Permissive ,,,1 的结果是 Enforcing
[root@localhost ~]# getenforce
Permissive
               


               

永久关闭:

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

SELINUX=enforcing 改为 SELINUX=disabled
               

重启服务reboot


来自  https://blog.csdn.net/xin_y/article/details/79007986

普通分类: