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

x33g5p2x  于2个月前 转载在 其他  
字(0.9k)|赞(0)|评价(0)|浏览(28)

【现象】

/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

相关文章