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

永久关闭selinux

时间:2017-08-16 23:23:00      阅读:372      评论:0      收藏:0      [点我收藏+]

标签:selinux

修改配置文件,永久关闭selinux。

vim /etc/selinux/config

# This file controls the state of SELinux on the system.

# SELINUX= can take one of these three values:

#       enforcing - SELinux security policy is enforced.

#       permissive - SELinux prints warnings instead of enforcing.

#       disabled - SELinux is fully disabled.

SELINUX=disabled

# SELINUXTYPE= type of policy in use. Possible values are:

#       targeted - Only targeted network daemons are protected.

#       strict - Full SELinux protection.

SELINUXTYPE=targeted




setenforce 0   #临时关闭selinux命令

getenforce      #查看selinux当前状态


本文出自 “每天进步一点点” 博客,请务必保留此出处http://zuoshou.blog.51cto.com/2579903/1956878

永久关闭selinux

标签:selinux

原文地址:http://zuoshou.blog.51cto.com/2579903/1956878

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