1、运行命令sudo vim /etc/sysconfig/selinux

2、找到行SELINUX=enforcing

3、替换为SELINUX=disabled保存退出reboot

4、重启后 运行命令 sestatusSELinux status : disabled永久关闭selinux成功

时间:2025-10-23 17:45:06
1、运行命令sudo vim /etc/sysconfig/selinux

2、找到行SELINUX=enforcing

3、替换为SELINUX=disabled保存退出reboot

4、重启后 运行命令 sestatusSELinux status : disabled永久关闭selinux成功
