Centos7 selinux关闭

getenforce  ---查看selinux服务是否开启

setenforce 0|1  0:Permissive  1:Enforcing

上面使用setenforce是临时的效果

 

永久关闭方法:

vi /etc/selinux/config

SELINUX=disabled

重启后才能生效

posted @ 2020-09-24 18:57  羊途踪  阅读(330)  评论(0编辑  收藏  举报