selinux status centos 7 code example
Example 1: turn off selinux centos
//This disables selinux this boot
$ setenforce 0
//To entirely disable selinux
$ sudo vi /etc/sysconfig/selinux
//Change the SELINUX=enforcing directive to SELINUX=disabled.
//Then reboot
Example 2: centos selinux set permissive
sudo setenforce 0