How to Disable SELinux on CentOS 7?

HostStud

Administrator
Staff member
First of all check the status of SELinux on your system

$ sestatus
You can temporarily change the SELinux mode from targeted to permissive with the following command:
# setenforce 0
To permanently disable SELinux, open the file /etc/selinux/config :
# nano /etc/selinux/config
and set the SELINUX mod to disabled

SELINUX=disabled
Save the file and then reboot your system
 
Top