centos selinux开关

简介:

方法1

关闭:setenforce 0

打开:setenforce 1

此方法重启后配置失效


方法2:


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

相关文章
|
Linux 网络安全
iptables防火墙限制 centos中有 firewalld selinux 还有 iptables
iptables防火墙限制 centos中有 firewalld selinux 还有 iptables
95 0
iptables防火墙限制 centos中有 firewalld selinux 还有 iptables
|
关系型数据库 MySQL Linux
|
Web App开发 安全 Linux
|
1月前
|
Linux 网络安全 数据安全/隐私保护
如何在 VM 虚拟机中安装 CentOS Linux 9 操作系统保姆级教程(附链接)
如何在 VM 虚拟机中安装 CentOS Linux 9 操作系统保姆级教程(附链接)
143 0
|
1月前
|
存储 JavaScript Linux
Linux环境下安装nmp(Centos环境)保姆级教学 一步到位
Linux环境下安装nmp(Centos环境)保姆级教学 一步到位

热门文章

最新文章