临时和永久关闭selinux

临时关闭:

[root@localhost ~]# getenforce
Enforcing

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

永久关闭:

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

SELINUX=enforcing 改为 SELINUX=disabled

重启服务reboot

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

猜你喜欢

转载自blog.csdn.net/miss1181248983/article/details/81177886