centos关闭selinux
技术分享
centos关闭selinux
2026-05-28 15:35
1.输入命令:setenforce 0,回车运行关闭,这个命令是临时关闭,重启系统后还会开启。

2.需要永久关闭的:输入命令vi /etc/selinux/config:

3.将SELINUX=enforcing,改为SELINUX=disabled:

然后保存退出。