我最近用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
。我不确定这是否重要。
发布于 2019-03-28 04:04:05
Nginx运行得很好,但它不能再通过4000端口连接到上游服务器(您的GraphQL服务器)。
确保您的GraphQL后端已使用初始化文件正确设置,并且在快捷批处理启动时启动。
https://stackoverflow.com/questions/55383777
复制相似问题