SELinux (Security-EnhancedLinux) is the implementation of mandatory access control by the National Security Agency (NSA) and the most outstanding new Security subsystem in Linux history. Under such access control system restrictions, a process can only access the files required in its tasks. SELinux is installed on Fedora and RedHatEnterpriseLinux by default. Although SELinux is very useful, we still disable it in most cases, because SELinux (Security-Enhanced Linux) is the implementation of mandatory access control by the National Security Agency (NSA, is the most outstanding new security subsystem in Linux history. Under such access control system restrictions, a process can only access the files required in its tasks. SELinux is installed on Fedora and Red Hat Enterprise Linux by default.
Although SELinux is easy to use, we disable it in most cases, because using SELinux without knowing its mechanism will cause software installation or application deployment failure.
The following describes how to disable SELinux:
System version: centos 6.5 mini
1. View selinux status
View the detailed status of selinux. if it is enable, it indicates that selinux is enabled.
#/Usr/sbin/sestatus-v
View selinux mode
# Getenforce
2. disable selinux
2.1: permanently shut down (this will take effect after the server is restarted)
# Sed-I's/SELINUX = enforcing/SELINUX = disabled/'/etc/selinux/config
2.2: Temporary shutdown (effective immediately, but invalid after server restart)
# Setenforce 0 # set selinux to permissive mode (that is, disable it)
# Setenforce 1 # set selinux to enforcing mode (enable)
In this way, SELinux is disabled. when the installation software encounters problems, you can disable SELinux before installing SELinux.