To temporarily disable SELinux, use the command:
# setenforce 0
To check the status of SELinux, use the command:
# getenforce
To disable it permanently, set the SELINUX variable to disabled in the /etc/selinux/config file. To make changes, open the file in the vi editor with the command:
vi /etc/selinux/config
After starting the vi editor, you are in command mode. To edit text, you must switch to input mode: enter the command i (from the word insert); to return to command line mode and save changes to the file, press Esc and type ZZ