linux如何关闭selinux
来源:互联网 发布:Mac软件删除 编辑:程序博客网 时间:2024/06/05 01:12
一、查看SELinux状态命令:
1、/usr/sbin/sestatus -v ##如果SELinux status参数为enabled即为开启状态
SELinux status: enabled
2、getenforce ##也可以用这个命令检查
二、关闭SELinux方法:
1、临时关闭(不用重启机器):
setenforce 0 #设置SELinux 成为permissive模式
#setenforce 1 设置SELinux 成为enforcing模式
2、修改配置文件需要重启机器:
修改/etc/selinux/config 文件
将SELINUX=enforcing改为SELINUX=disabled
重启机器即可
0 0
- linux如何关闭selinux
- SELinux是什么? linux CentOS中如何关闭,禁用SELinux
- Redhat Enterprise Linux中如何关闭SELinux?
- Redhat Enterprise Linux中如何关闭SELinux?
- 如何关闭SeLinux
- 如何关闭selinux
- 如何关闭selinux
- linux关闭selinux
- Linux 关闭SElinux
- linux关闭firewall,selinux
- CentOS/Linux 关闭SELinux
- Linux关闭防火墙、SELinux
- linux关闭防火墙,selinux
- Centos Linux 系统下如何快速关闭SELINUX
- Centos Linux 系统下如何快速关闭SELINUX
- 如何关闭与查询Linux里边的selinux ?
- 在Linux系统中如何查看和关闭SELinux
- 如何关闭selinux和防火墙
- IOS开发—block对外部变量的内存管理
- Ruby正则表达式的一个例子
- windows下DNS手动修改无效
- 动态规划之深入灵魂的解读(非常好)
- 十款最出色的PHP安全开发库中文详细介绍
- linux如何关闭selinux
- DataColumn.Expression 语法
- 【黑马程序员】-01c语言基础知识(变量和scanf)
- dp(UVa - 10626 Buying Coke)
- (总结)Linux的chattr与lsattr命令详解
- 翻译之使用Gson将java对象转换为json对象
- 用Python尝试写一个土法X-Path分析器
- HDU 4008 Parent and son
- OC学习小结之Foudation -结构体