相关文章
友情链接

云主机测试CentOS 禁用selinux

云主机测试CentOS 禁用selinux

1.先查看selinux有没有打开

# getenforce

如果显示Disabled,说明已经关闭,如果不是请如下操作

2.不重启,临时生效

# setenforce 0

3.为了防止重启失效,请修改配置文件

# sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config