selinux关闭不重启系统

2008年10月24日 | 15:51分类:linux | 标签: | 125 views

CentOS使用了selinux来增强安全,但是使用起来有时候十分繁琐,就想关闭它,但是如果安装服务器的时候开始没有图形界面,还真不好找关闭selinux的地方。

下面介绍关闭selinux的方法
Redhat系统,修改/etc/sysconfig/selinux文件:
#SELINUX=enforcing
SELINUX=disabled

重启系统生效,如果不想重启系统,使用命令
setenforce 0

发表您的评论

您的名字: (*必填)

您的邮箱: (*不会被公布 ,必填)

您的网站:

*
To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
Click to hear an audio file of the anti-spam word