第一步 Redhat系统,修改/etc/sysconfig/selinux文件: 把 #SELINUX=enforcing 改为 SELINUX=disabled 第二步 先使用命令禁止selinux,然后系统重新启动后上面的配置就自动生效,从而不用再次执行命令 a)查看Selinux用法 # settenforce usage: setenforce [
第一步 Redhat系统,修改/etc/sysconfig/selinux文件:
把
#SELINUX=enforcing
改为
SELINUX=disabled
把
#SELINUX=enforcing
改为
SELINUX=disabled
第二步 先使用命令禁止selinux,然后系统重新启动后上面的配置就自动生效,从而不用再次执行命令
a)查看Selinux用法
# settenforce
usage: setenforce [ Enforcing | Permissive | 1 | 0 ]
a)查看Selinux用法
# settenforce
usage: setenforce [ Enforcing | Permissive | 1 | 0 ]
b)禁用Selinux
# setenforce 0
setenforce: SELinux is disabled
# setenforce 0
setenforce: SELinux is disabled
c) 查看Selinux状态:
# getenforce
Permissive
# getenforce
Permissive
转载于:https://blog.51cto.com/liantian/280522