AFF窝 - Nginx 2020-10-24T09:55:08+08:00 Typecho https://www.affwo.com/feed/atom/tag/Nginx/ <![CDATA[NGINX开启目录显示403]]> https://www.affwo.com/281.html 2020-10-24T09:55:08+08:00 2020-10-24T09:55:08+08:00 admin https://www.affwo.com 修改NGINX运行用户:

vi /etc/nginx/nginx.conf
user  root;  #修改成root

修改selinux:
永久关闭

vi /etc/selinux/config
SELINUX=disabled  #修改成disabled

临时关闭:

setenforce 0

状态查看:

getenforce

显示Permissive为关闭

]]>