#环境
[root@node1 ~]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
#关闭
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
#重启
reboot
永久关闭selinux模式
原创
©著作权归作者所有:来自51CTO博客作者Freddy_Shen的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:CentOS Linux yum安装netcat/nc
下一篇:Mac/Linux -bash: /etc/profile: Permission denied & chmod 777 & chmod
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Linux 永久挂载磁盘
linux 目录挂载
重启 根目录 -
Centos/RHCL/Fedora永久关闭selinux
Centos/RHCL/Fedora永久关闭selinux
centos linux 服务器 ci -
临时和永久关闭firewalld与selinux
临时和永久关闭firewalld与selinux
firewalld selinux