How to disable SELinux on CentOS 7.x in code 发表于 2019-07-16 更新于 2019-07-19 How to disable startup services from Aliyun12sed -i.bak /etc/selinux/config -r -e 's/^SELINUX=.*/SELINUX=disabled/'setenforce 0