centos selinux开关

简介:

方法1

关闭:setenforce 0

打开:setenforce 1

此方法重启后配置失效


方法2:


   直接修改文件/etc/selinux/config文件,需要重启服务器

相关文章
|
9月前
|
安全 Linux 数据安全/隐私保护
CentOS中SELinux的禁用与关闭操作
在禁用SELinux时,你要时刻谨慎小心。SELinux提供了安全功能,并阻止了许多常见的网络攻击,关闭它可能会让你的系统置于风险之中。除非非常确定SELinux为你带来了不必要的麻烦,否则最好的选择往往是留着它,适当地调整和细化你的SELinux策略,来适应你的需求。
924 19
|
Linux
Centos7下查看并关闭selinux
Centos7下查看并关闭selinux
497 0
|
Linux 网络安全
iptables防火墙限制 centos中有 firewalld selinux 还有 iptables
iptables防火墙限制 centos中有 firewalld selinux 还有 iptables
194 0
iptables防火墙限制 centos中有 firewalld selinux 还有 iptables
|
Linux
CentOS/RHEL 7 “Failed to load selinux policy, freezing” 问题的解决
嘿!!!您在启动过程中是否遇到过此类问题。
725 0
CentOS/RHEL 7 “Failed to load selinux policy, freezing” 问题的解决
|
运维 安全 大数据
【精通Linux系列】Centos7的防火墙及selinux介绍与端口的使用
【精通Linux系列】Centos7的防火墙及selinux介绍与端口的使用
488 0
【精通Linux系列】Centos7的防火墙及selinux介绍与端口的使用
|
关系型数据库 MySQL Linux
|
Web App开发 安全 Linux