To disable SELinux
Method 1
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config setenforce 0
Method 2
edit file
vi /etc/selinux/config
Find
SELINUX=enforcing
Replace with
SELINUX=disabled
Reboot the server with
reboot
You can disable selinux for current session by running command
setenforce 0
See SELinux
Leave a Reply