技术分享技术分享

帮助分类
技术分享
文档首页> 技术分享> centos关闭selinux

centos关闭selinux

发布时间:2026-05-28 15:34       

1.输入命令:setenforce 0,回车运行关闭,这个命令是临时关闭,重启系统后还会开启。

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

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

然后保存退出。