用命令# sestatus 查看查看当前SELinux的运行状态,如果是enforcing,使用命令setsebool设置SELinux为disabled。例下
[root@localhost ~]# sestatus SELinux status: enforcing
[root@localhost ~]# vi /etc/sysconfig/selinux
SELINUX=enforcing –>SELINUX=disabled
重启后生效
不需重启
执行命令:setenforce 0
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!