Linux临时和永久关闭Selinux
2018-03-03 23:28
399 查看
临时关闭
[root@xuegod63~]# getenforce
Enforcing
[root@xuegod63~]# setenforce 0
setenforce:SELinux is disabled
永久关闭
[root@xuegod63 ~]# vim /etc/selinux/config
改:7SELINUX=enforcing #前面的7,表示文档中第7行。方便你查找
为:7SELINUX=disabled
[root@xuegod63 ~]# reboot
[root@xuegod63~]# getenforce
Enforcing
[root@xuegod63~]# setenforce 0
setenforce:SELinux is disabled
永久关闭
[root@xuegod63 ~]# vim /etc/selinux/config
改:7SELINUX=enforcing #前面的7,表示文档中第7行。方便你查找
为:7SELINUX=disabled
[root@xuegod63 ~]# reboot
相关文章推荐
- 临时和永久关闭Selinux——新手上路
- 临时和永久关闭firewalld与selinux
- rhel7的基本操作(查看IP配置,关闭防火墙,临时或永久关闭selinux,常用命 16ca 令操作)
- linux的服务的永久或临时关闭开启
- SELinux临时关闭,永久关闭
- 临时和永久关闭Selinux
- 关闭linux下的selinux
- 关闭Linux里边的selinux
- 域名无法解析 Linux临时或永久修改DNS
- Linux---centos永久关闭防火墙
- Ubuntu14.04 修改MAC地址-永久(临时)修改 Linux
- Linux 防火墙和SELinux的开启和关闭
- Linux下开启关闭SeLinux
- linux关于关闭防火墙和selinux的操作
- Redhat (Linux) 修改主机名_永久生效_临时生效
- Linux中添加静态路由的方法(临时的和永久的)
- 关闭Linux下的SELinux
- Linux设置环境变量小结:设置永久变量&临时变量 全局变量&局部变量
- linux 环境变量设置(临时 + 永久)
- linux 关闭selinux安全验证和iptables