How do I disable SELinux on Centos?

To temporarily disable selinux type:

echo 0 >/selinux/enforce
To disable SELinux permanently, edit the file: /etc/selinux/config
Change the following line:
SELINUX=enforcing
to:
SELINUX=disabled
Then restart your machine. 

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-spam image