博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
centos 7 关闭selinux
阅读量:4102 次
发布时间:2019-05-25

本文共 696 字,大约阅读时间需要 2 分钟。

1 查看selinux状态
cat /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 - No SELinux policy is loaded.  关闭SELINUX=enforcing # SELINUXTYPE= can take one of three values:#     targeted - Targeted processes are protected,#     minimum - Modification of targeted policy. Only selected processes are protected. #     mls - Multi Level Security protection.SELINUXTYPE=targeted
2. 关闭
sed -i 's#SELINUX=enforcing#SELINUX=disabled#g' /etc/selinux/config

修改完之后,必须重启才能生效

3 临时生效
setenforce 0

转载地址:http://sszsi.baihongyu.com/

你可能感兴趣的文章
链睿和家乐福合作推出下一代零售业隐私保护技术
查看>>
Unifrax宣布新建SiFAB™生产线
查看>>
艾默生纪念谷轮™在空调和制冷领域的百年创新成就
查看>>
NEXO代币持有者获得20,428,359.89美元股息
查看>>
Piper Sandler为EverArc收购Perimeter Solutions提供咨询服务
查看>>
RMRK筹集600万美元,用于在Polkadot上建立先进的NFT系统标准
查看>>
JavaSE_day12 集合
查看>>
JavaSE_day14 集合中的Map集合_键值映射关系
查看>>
Day_15JavaSE 异常
查看>>
异常 Java学习Day_15
查看>>
JavaSE_day_03 方法
查看>>
day-03JavaSE_循环
查看>>
Mysql初始化的命令
查看>>
day_21_0817_Mysql
查看>>
day-22 mysql_SQL 结构化查询语言
查看>>
MySQL关键字的些许问题
查看>>
浅谈HTML
查看>>
css基础
查看>>
HTML&CSS进阶
查看>>
Servlet进阶和JSP基础
查看>>