美文网首页
django nginx 502 Bad Gateway(13:

django nginx 502 Bad Gateway(13:

作者: f109 | 来源:发表于2020-01-10 17:12 被阅读0次

在我成功启动了nginx兴致冲冲去访问自己的服务器ip之后我发现出现了

nginx 502 Bad Gateway

的字样,于是连接到服务器上看报错信息
在/var/log/nginx 中的error.log中看到了如下错误

connect() to unix:/root/projects/TeaShop/script/uwsgi.sock failed (13: Permission denied)

此时只需要打开nginx配置文件nginx.conf修改user字段的用户为root即可

相关文章

网友评论

      本文标题:django nginx 502 Bad Gateway(13:

      本文链接:https://www.haomeiwen.com/subject/wvkmactx.html