查看 SELinux状态及关闭SELinux
来源:互联网 发布:台式电脑连接不上网络 编辑:程序博客网 时间:2024/06/11 08:17
查看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
- 【西祠日志】【01】第一天工作,我想,这是一个新的开始
- HEAD FIRST HTML&CSS 读书笔记(1)
- Android之——多线程断点续传下载示例
- 嵌入式系统bootloader详解
- MyEclipse Servers视窗出现“Could not create the view: An unexpected exception was thrown”错误解决办法
- 查看 SELinux状态及关闭SELinux
- 如何防止头文件被重复包含、嵌套包含
- B. Case of Fake Numbers
- java之多线程
- 【Python】容器类
- POJ 3026 (BFS+最小生成树)
- java内存管理的8个小技巧
- android studio中文件内容查找相当于Eclipse中Ctrl+H & 查找项目中所有中文
- 机器学习的数学基础(1)--Dirichlet分布