临时关闭:
[root@localhost ~]# getenforceEnforcing
[root@localhost ~]# setenforce 0[root@localhost ~]# getenforcePermissive
永久关闭:
[root@localhost ~]# vim /etc/sysconfig/selinux
SELINUX=enforcing 改为 SELINUX=disabled
重启服务reboot
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3