当前位置:   article > 正文

nginx的权限问题(13: Permission denied)的解决办法_nginx permission denied

nginx permission denied

*355 open() "/var/lib/nginx/tmp/proxy/3/07/0000000073" failed (13: Permission denied) while reading upstream, client: 127.0.0.1, server: localhost, request: "GET /dinner/images/img1.png HTTP/1.1", upstream: 
 

到 /var/lib/nginx/tmp 目录 用命令 ll 查看权限,如下:

如果没有权限:执行:chmod -R 766 proxy/,如果有权限,无需执行

查看nginx的权限如图:权限是nginx 然后更改nginx配置文件:user nginx;
 
改成:user root;

然后停止 nginx -s stop
 
重启nginx -c  nginx.conf

然后测试,发现搞定了,over! 啦!啦!啦!

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/179376?site
推荐阅读
相关标签
  

闽ICP备14008679号