AFF窝 - 目录显示 https://www.affwo.com/tag/%E7%9B%AE%E5%BD%95%E6%98%BE%E7%A4%BA/ zh-CN Sat, 24 Oct 2020 09:55:08 +0800 Sat, 24 Oct 2020 09:55:08 +0800 NGINX开启目录显示403 https://www.affwo.com/281.html https://www.affwo.com/281.html Sat, 24 Oct 2020 09:55:08 +0800 admin 修改NGINX运行用户:

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

修改selinux:
永久关闭

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

临时关闭:

setenforce 0

状态查看:

getenforce

显示Permissive为关闭

]]>
0 https://www.affwo.com/281.html#comments https://www.affwo.com/feed/tag/%E7%9B%AE%E5%BD%95%E6%98%BE%E7%A4%BA/