To disable selinux on a RedHat server, you can run the following command:
setenforce 0
To disable after reboot edit the file /etc/selinux/conf:
SELINUX=disabled
Save it and reboot.
You can also append the following to your kernel line in the /boot/grub/grub.conf.
selinux=0
Another way to temporarily (not across reboots) enable or disable selinux is:
echo 0 >/selinux/enforce — To disable
or
echo 1 >/selinux/enforce — To enable