【发布时间】:2019-03-27 18:00:45
【问题描述】:
我最近使用 Ubuntu 和 Docker 和 Nginx 制作了一个 droplet。我将我的 prisma react 原生项目部署到了 droplet,一切正常。
我使用sudo shutdown -r now 关闭了我的Droplet,当Droplet 重新启动而不是显示Graphql Playground 的Droplet IP 地址时,我现在看到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 connect() 在连接到上游时失败(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。我不确定这是否重要。
【问题讨论】:
标签: ubuntu nginx digital-ocean