Rate This Document
Findability
Accuracy
Completeness
Readability

Disabling SELinux

Purpose

Disable SELinux to reduce the performance loss of SELinux.

Procedure

  1. Open the SELinux file.
    1
    vim /etc/sysconfig/selinux
    
  2. Press i to enter the insert mode and change the value of SELINUX from enforcing to disabled.

  3. Press Esc, type :wq!, and press Enter to save the file and exit.
  4. Restart the server and check whether SELinux is disabled.
    1
    /usr/sbin/sestatus -v
    

    If the SELinux status parameter is disabled, SELinux is disabled.