Jun 27

查看 SELinux状态及关闭SELinux 不指定

bkkkd , 16:24 , 网摘 » linux/unix 命令解释 , 评论(1) , 引用(0) , 阅读(23519) , Via 本站原创 | |
查看SELinux状态:

1、/usr/sbin/sestatus -v      ##如果SELinux status参数为enabled即为开启状态

SELinux status:                 enabled

2、getenforce                 ##也可以用这个命令检查

关闭SELinux:

1、临时关闭(不用重启机器):

setenforce 0                  ##设置SELinux 成为permissive模式
                                   ##setenforce 1 设置SELinux 成为enforcing模式


2、修改配置文件需要重启机器:

修改/etc/selinux/config 文件

将SELINUX=enforcing改为SELINUX=disabled

重启机器即可
电视棒是真的吗 Email Homepage
July 31, 2013 05:03
分析的很透彻,很欣赏你的看法,学习了。
分页: 1/1 第一页 1 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]