查看 SELinux状态及关闭SELinux
来源:互联网 发布:部落冲突x升级数据 编辑:程序博客网 时间:2024/05/29 17:52
查看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
- 查看 SELinux状态及关闭SELinux
- 查看 SELinux状态及关闭SELinux
- 查看 SELinux状态及关闭SELinux
- 查看 SELinux状态及关闭SELinux
- 查看 SELinux状态及关闭SELinux
- 查看 SELinux状态及关闭SELinux
- 查看 SELinux状态及关闭SELinux
- 查看 SELinux状态及关闭SELinux
- 查看SELinux状态及关闭SELinux
- 查看 SELinux状态及关闭SELinux
- 查看 SELinux状态及关闭SELinux
- 查看 SELinux状态及关闭SELinux
- 查看 SELinux状态及关闭SELinux
- 查看 SELinux状态及关闭SELinux
- 查看 SELinux状态及关闭SELinux
- 查看 SELinux状态及关闭SELinux
- 查看 SELinux状态及关闭SELinux
- 查看 SELinux状态及关闭SELinux
- 安装官方原版win10系统
- PAT乙级1038 统计同成绩学生
- python2.x基础学习笔记(一)
- evdev事件处理器数据处理过程
- echo(),print(),print_r()之间的区别?
- 查看 SELinux状态及关闭SELinux
- 利用区块链技术健全大数据价值流通体系
- 酷科技 | Moto Z2 Force 模块化智能手机
- java并发编程学习(七) volatile的内存语义
- 重磅 | 嘉年华:2017中国通信产业大会(CCIC2017)与你相约12月
- 小区
- Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.tran
- C 标准库
- SQL中distinct的用法