码迷,mamicode.com
首页 > 系统相关 > 详细

防火墙:selinux

时间:2017-06-14 20:17:55      阅读:226      评论:0      收藏:0      [点我收藏+]

标签:oca   sed   conf   状态   logs   inux   pre   color   cin   

[root@localhost ~]# getenforce      # 查看 selinux 的状态
[root@localhost ~]# setenforce 0    # 临时关闭 selinux
[root@localhost ~]# sed -i ‘s/SELINUX=enforcing/SELINUX=disabled/‘ /etc/selinux/config  # 永久关闭 selinux

 

 

 

 

    

防火墙:selinux

标签:oca   sed   conf   状态   logs   inux   pre   color   cin   

原文地址:http://www.cnblogs.com/pzk7788/p/7010592.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!