关闭selinux

关闭selinux

一个linux的安全系统,复杂滴很,非专业运维直接关掉吧,方便放行各种规则

参考资料:https://jingyan.baidu.com/article/6d704a13409b4128da51ca4e.html

查看当前状态getenforce

[root@localhost ~]# getenforce

Disabled

修改系统文件:[root@localhost ~]# vi /etc/selinux/config

 

# This file controls the state of SELinux on the system.

# SELINUX= can take one of these three values:

#     enforcing - SELinux security policy is enforced.

#     permissive - SELinux prints warnings instead of enforcing.

#     disabled - No SELinux policy is loaded.

SELINUX=disabled

# SELINUXTYPE= can take one of three values:

#     targeted - Targeted processes are protected,

#     minimum - Modification of targeted policy. Only selected processes are protected.

#     mls - Multi Level Security protection.

SELINUXTYPE=targeted

 

把SELINUX=disabled即可

你可能感兴趣的:(linux)