First, modify the file/etc/sysconfig/selinux as follows.
# This file controls the state of SELinux in the system.# selinux= can take one of the these three values:# Enforcing-se Linux security Policy is enforced.# permissive-selinux prints warnings instead of enforcing.# disabled-no SELi Nux policy is loaded. selinux=disabled# Selinuxtype= can take one of these, values:# targeted-targeted processes is protected,# ml S-multi level Security protection. selinuxtype=targeted
Second, the amendment/etc/selinux/config as follows.
# This file controls the state of SELinux in the system.# selinux= can take one of the these three values:# Enforcing-se Linux security Policy is enforced.# permissive-selinux prints warnings instead of enforcing.# disabled-no SELi Nux policy is loaded. selinux=disabled# Selinuxtype= can take one of these, values:# targeted-targeted processes is protected,# ml S-multi level Security protection. selinuxtype=targeted
Third, restart the server
Disable SELinux for Rhel 6.5