Disable SELinux CentOS 7

Disable SELinux CentOS 7

This blog covers the basic steps to disable SELinux on CentOS 7

 

first we need to see how SELinux is configured, issue the sestatus command

sestatus

as you can see the current mode is enforcing, issue the following command to disable it

sed -i 's/enforcing/disabled/g' /etc/selinux/config /etc/selinux/config

 

 

now issue the sestatus command again

sestatus

 

you should see that the config file, is now going to load it as disabled after the next reboot.

shutdown -r now

issue a reboot

posted @ 2016-03-28 11:33  薛定谔的青蛙王梓  阅读(380)  评论(0编辑  收藏  举报