CentOS7中关闭selinux
来源:互联网 发布:算法题库及答案 编辑:程序博客网 时间:2024/06/08 00:58
SELinux是一种安全子系统,它能控制程序只能访问特定文件,感觉类似于防火墙,所有有时候会影响程序的安装和密钥的验证。
首先查看SELinux状态,如下
[root@localhost ~]# sestatus
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: enforcing
Mode from config file: enforcing
Policy MLS status: enabled
Policy deny_unknown status: allowed
Max kernel policy version: 28
SELinux的关闭也和防火墙一样,可以临时操作,重启失效;也可以永久操作。
临时关闭:
[root@localhost ~]# setenforce 0
临时开启:
[root@localhost ~]# setenforce 1
永久关闭:
[root@localhost ~]# vi /etc/selinux/config
修改 SELINUX=disabled
永久开启:
改成:SELINUX=enforcing
重启
[root@localhost ~]# sestatus
SELinux status: disabled
完成
- CentOS7中关闭selinux
- CentOS7中关闭selinux
- CentOS7关闭SELinux
- CentOS7关闭SELinux
- CentOS7关闭SELinux
- CentOS7关闭防火墙和selinux
- Centos7 关闭防火墙和selinux
- CentOS7关闭防火墙和SELinux
- CentOS7关闭防火墙和SELinux
- centos7 关闭防火墙和selinux
- centos7 关闭firewall安装iptables并配置,关闭SELINUX
- 在gfs2中关闭selinux
- redhat7 centos7 关闭SELinux和防火墙的办法
- SELinux是什么? linux CentOS中如何关闭,禁用SELinux
- 关闭SeLinux
- Selinux 关闭
- 关闭selinux
- 关闭selinux
- 利用属性动画实现优酷菜单
- 换行
- marquee实现通知公告例子
- ThreadLocal使用,Thread的start和run的区别,等一些琐碎的东西
- AngularJS 依赖注入
- CentOS7中关闭selinux
- SVN出现.mine等文件, 原因是应为版本冲突
- 采用微服务时必须解决的四个挑战
- BeanFacotry和FacotryBean的区别
- 写在前面
- 嵌入式ARM交叉编译器安装
- RxJava 系列之基本语法(1)
- 解决JavaWeb中图片路径的做法
- Socket网络编程学习笔记(5):发送和接收实体类数据