临时关闭:
[root@localhost ~]# getenforceEnforcing
[root@localhost ~]# setenforce 0[root@localhost ~]# getenforcePermissive
永久关闭:
[root@localhost ~]# vim /etc/sysconfig/selinux
SELINUX=enforcing 改为 SELINUX=disabled
重启服务reboot
Powered by: 博客园 Copyright © 2024 shenyixin Powered by .NET 8.0 on Kubernetes