首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >502 Bad Gateway nginx/1.14.0 (Ubuntu)错误

502 Bad Gateway nginx/1.14.0 (Ubuntu)错误
EN

Stack Overflow用户
提问于 2019-03-28 02:00:46
回答 1查看 4.9K关注 0票数 0

我最近用Ubuntu和Docker和Nginx做了一个droplet。我将我的prisma react原生项目部署到droplet上,一切都运行得很好。

我使用sudo shutdown -r now关闭了我的down,当down重新启动而不是显示Graphql Playground的down地址时,我现在看到了502 Bad Gateway nginx/1.14.0 (Ubuntu)

运行命令sudo tail -5 /var/log/nginx/error.log会显示错误

2019/03/27 17:17:44错误10099#10099:*5连接上游失败(111:连接被拒绝),客户端: 172.218.13.88,服务器:_,请求:"GET / HTTP/1.1",上游:"http://127.0.0.1:4000/",主机:"68.183.202.55“

我用sudo systemctl status nginx检查了Nginx的状态,看起来一切都很好,除了有一行写着nginx.service: Failed to parse PID from file /run/nginx.pid: Invalid argument。我不确定这是否重要。

EN

回答 1

Stack Overflow用户

发布于 2019-03-28 04:04:05

Nginx运行得很好,但它不能再通过4000端口连接到上游服务器(您的GraphQL服务器)。

确保您的GraphQL后端已使用初始化文件正确设置,并且在快捷批处理启动时启动。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55383777

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档