查看 SELinux状态及关闭SELinux
2016-03-10 16:46
726 查看
查看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
重启机器即可
本文出自 “孤星雨” 博客,请务必保留此出处http://bguncle.blog.51cto.com/3184079/957315
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
重启机器即可
本文出自 “孤星雨” 博客,请务必保留此出处http://bguncle.blog.51cto.com/3184079/957315
相关文章推荐
- SELinux导致PHP连接MySQL异常Can't connect to MySQL server的解决方法
- 关闭selinux(防火墙)方法分享
- 查看 SELinux状态及关闭SELinux
- SELinux概述及相关命令
- SELINUX for APACHE VSFTP
- CentOS 6 關閉SELinux
- SElinux
- SElinux 配置与管理
- SELinux配置
- centos7中docker文件挂载,容器中没有执行权限
- selinux未禁用导致httpd无法使用非80等默认端口
- SeLinux+CentOS+Apache+mod_fastcgi配置FastCGI环境
- SELinux简介
- SELinux
- SElinux流程图
- 500 OOPS: cannot change directory:/home/
- Centos下Apache和vsftpd共用一个目录
- centos7 在 selinux先 改ssh端口
- CentOS 6.2 上安装 Gitolite 时出现 Permission Denied 的解决方法
- selinux未禁用导致httpd无法使用非80等默认端口解决