查看 SELinux状态及关闭SELinux
来源:互联网 发布:如何申请网址域名 编辑:程序博客网 时间:2024/06/14 03:49
查看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
- CMMI定量管理级
- 深度学习中的图像的灰度值相关概念:图像灰度值 灰度值与像素值的关系
- Protocol Buffer
- 解决mysql ERROR 1045 (28000):
- ubuntu16.04 利用pyenv安装anaconda3+pycharm
- 查看 SELinux状态及关闭SELinux
- Item 6:若不想使用编译器自动生成的函数,就该明确拒绝【effective C++读书笔记】
- webService远程调用技术二()
- 获取字符串的统计字符串 Python 版
- printf
- 数据结构实验之图论三:判断可达性
- JCrontab的一个简单的案例
- 使用POI和dom4j来解析Excel生成Xml
- JAVA-常用类