CentOS 7 关闭Selinux

临时关闭:

[root@localhost ~]# getenforce
Enforcing

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

 

永久关闭:

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

SELINUX=enforcing 改为 SELINUX=disabled

修改配置需要重启

[root@localhost ~]# reboot

posted @ 2019-09-10 15:04  Rozdy  阅读(2724)  评论(0编辑  收藏  举报