failed (13: Permission denied) while reading upstream解决方法

Posted 秋9

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了failed (13: Permission denied) while reading upstream解决方法相关的知识,希望对你有一定的参考价值。

【现象】

/usr/local/nginx/logs/error.log
2022/08/11 09:36:47 [crit] 2821940#0: *6263 open() "/usr/local/nginx/proxy_temp/2/29/0000000292" failed 
(13: Permission denied) while reading upstream, client: 15.60.178.88, server: demo.jichu.com, 
request: "GET /static/css/bootstrap.min.css.map HTTP/1.1", 
upstream: "http://15.60.178.88:3001/static/css/bootstrap.min.css.map", host: "demo.jichu.com"
2022/08/11 09:36:49 [crit] 2821940#0: *6261 open() "/usr/local/nginx/proxy_temp/3/29/0000000293" failed (
13: Permission denied) while reading upstream, client: 15.60.178.88, server: demo.jichu.com, 
request: "GET /class/studChoiceConfig?v=463&_=1660181808733 HTTP/1.1", 
upstream: "http://15.60.178.88:3001/class/stu?v=463&_=1660181808733", host: "demo.jichu.com", 
referrer: "http://demo.jichu.com/class/class"

【解决方法】

vi /usr/local/nginx/conf/nginx.conf

#use nobody;
修改为
use root;

重启nginx

以上是关于failed (13: Permission denied) while reading upstream解决方法的主要内容,如果未能解决你的问题,请参考以下文章

rsync 错误 failed: Permission denied (13)

failed (13: Permission denied) while reading upstream解决方法

failed (13: Permission denied) while reading upstream解决方法

failed (13: Permission denied) while reading upstream解决方法

socket() failed (13: Permission denied) while connecting to upstream

nginx failed (13: Permission denied) while reading upstream