一、修改文件/etc/sysconfig/selinux如下。
1
2
3
4
5
6
7
8
9
10
<code># This file controls the state of SELinux on the system.</code>
<code># SELINUX= can take one of these three values:</code>
<code># enforcing - SELinux security policy is enforced.</code>
<code># permissive - SELinux prints warnings instead of enforcing.</code>
<code># disabled - No SELinux policy is loaded.</code>
<code>SELINUX=disabled</code>
<code># SELINUXTYPE= can take one of these two values:</code>
<code># targeted - Targeted processes are protected,</code>
<code># mls - Multi Level Security protection.</code>
<code>SELINUXTYPE=targeted</code>
二、修改/etc/selinux/config如下。
三、重启服务器
本文转自1321385590 51CTO博客,原文链接:http://blog.51cto.com/linux10000/1881575,如需转载请自行联系原作者