1、查看 [root@dev-server ~]# getenforce Disabled [root@dev-server ~]# /usr/sbin/sestatus -v SELinux status: disabled 2、临时关闭 ##设置SELinux 成为permissive ...
将SELINUX配置文件设置为 disabled 模式,禁用SELinux 使用sed 验证 然后reboot重启生效 工作中linux不能重启 命令先临时关闭 getenforce 查看当前selinux的级别状态 配置好配置文件,使用命令临时生效 setenforce 使配置立即生效 ...
2019-04-04 22:35 0 3574 推荐指数:
1、查看 [root@dev-server ~]# getenforce Disabled [root@dev-server ~]# /usr/sbin/sestatus -v SELinux status: disabled 2、临时关闭 ##设置SELinux 成为permissive ...
查看 临时关闭 永久关闭 将SELINUX=enforcing改为SELINUX=disabled 设置后需要重启才能生效 ...
安全增强型Linux(Security-Enhanced Linux)简称SELinux,它是一个 Linux 内核模块,也是Linux的一个安全子系统。为了避免安装过程出现各种错误,建议关闭,有如下两种关闭方法: 1)临时关闭(不建议使用) 但是这种方式只对当次启动有效,重启 ...
临时关闭: [root@localhost ~]# getenforceEnforcing [root@localhost ~]# setenforce 0[root@localhost ~]# getenforcePermissive 永久关闭: [root@localhost ...
查看selinux状态 临时关闭 永久关闭 可以修改配置文件/etc/selinux/config,将其中SELINUX设置为disabled。如果不是用的root账户登录,记得前边加sudo。 ...
1.查看命令 getenforce 2.临时关闭【enforcing—->permissive】 setenforce 0 3.永久关闭【enforcing—->disabled或者permissive—->disabled】 vim /etc ...
[root@localhost ~]# getenforce getenforce查看selinux的状态 状态:开启(Enforcing),关闭(Permissive) [root@localhost ~]#vim /etc/selinux/conf SELINUX ...
1、查看 [root@dev-server ~]# getenforce Disabled [root@dev-server ~]# /usr/sbin/sestatus -v SELinux status: disabled 2、临时关闭 ##设置SELinux ...