[root@localhost nginx]# getenforce #查询selinux状态 Enforcing[root@localhost nginx]# setenforce 0 #临时将selinux关闭