$ 0 0 1、检测SELinux是否打开:getenforce返回值:Enforcing:强制模式 Permissive:宽容模式 Disabled:关闭2、临时关闭SELinux:setenforce 00为关闭,1为打开,执行后立即生效,无需重启。