CentOS7关闭SELinux

<p>查看</p><p>[root@dev-server ~]# getenforce</p><p>Disabled</p><p>[root@dev-server ~]# /usr/sbin/sestatus -v</p><p>SELinux status: disabled</p><p>临时关闭</p><p>##设置SELinux 成为permissive模式</p><p>##setenforce 1 设置SELinux 成为enforcing模式</p><p>setenforce 0</p><p>永久关闭</p><p>vi /etc/selinux/config</p><p>将SELINUX=enforcing改为SELINUX=disabled</p><p>设置后需要重启才能生效。</p>
RangeTime:0.010136s
RangeMem:204.04 KB
返回顶部 留言