centos7 关闭selinux

1.临时关闭,selinux启动但是不生效

getenforce 0

2.永久关闭selinux,将第7行改为disabled.enforcing默认开启强制执行,permissive默认许可

修改后重启生效