Nginx 几个小时后,鬼博客被关闭了

Nginx 几个小时后,鬼博客被关闭了,nginx,ubuntu-14.04,digital-ocean,ghost-blog,Nginx,Ubuntu 14.04,Digital Ocean,Ghost Blog,好的,我在Digital Ocean的一个Nginx实例下有一个Ubuntu和两个Ghost博客 一个在gabsferreira.com上托管,另一个在panddi.com上托管 出于某种原因,gabsferreira.com在联机数小时后宕机,导致我出现以下错误: 502 Bad Gateway nginx/1.4.6 (Ubuntu) 如果我查看Nginx日志,我会看到多行类似这样的内容: 2017/05/01 23:46:18 [error] 928#0: *14500 connect

好的,我在Digital Ocean的一个Nginx实例下有一个Ubuntu和两个Ghost博客

一个在gabsferreira.com上托管,另一个在panddi.com上托管

出于某种原因,gabsferreira.com在联机数小时后宕机,导致我出现以下错误:

502 Bad Gateway

nginx/1.4.6 (Ubuntu)
如果我查看Nginx日志,我会看到多行类似这样的内容:

2017/05/01 23:46:18 [error] 928#0: *14500 connect() failed (111: Connection refused) while connecting to upstream, client: 66.249.79.174, server: gabsferreira.com, request: "GET /robots.txt HTTP/1.1", upstream: "http://127.0.0.1:2368/robots.txt", host: "gabsferreira.com"
2017/05/01 23:47:06 [error] 928#0: *14502 connect() failed (111: Connection refused) while connecting to upstream, client: 177.74.125.151, server: gabsferreira.com, request: "GET /criando-e-enviando-arquivos-para-seu-repositorio-no-github/ HTTP/1.1", upstream: "http://127.0.0.1:2368/criando-e-enviando-arquivos-para-seu-repositorio-no-github/", host: "gabsferreira.com", referrer: "https://www.google.com.br/"
2017/05/01 23:47:07 [error] 928#0: *14502 connect() failed (111: Connection refused) while connecting to upstream, client: 177.74.125.151, server: gabsferreira.com, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:2368/favicon.ico", host: "gabsferreira.com", referrer: "http://gabsferreira.com/criando-e-enviando-arquivos-para-seu-repositorio-no-github/"
如果我重新启动机器,它会重新开始工作,但几小时后就会停机

在此期间,另一个博客保持在线状态,因此Nginx和Ghost正在运行

在我为Nginx启用站点的文件夹中,我为每个博客获得了两个配置,panddi.conf:

server {
    server_name blog.panddi.com www.blog.panddi.com;

    root /usr/share/nginx/html;
    index index.html index.htm;

    client_max_body_size 10G;

    location / {
        proxy_pass http://localhost:2777;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_buffering off;
    }
}
和gabs.conf:

server {
    #listen 80 default_server;
    #listen [::]:80 default_server ipv6only=on;

    #listen 127.0.0.1:2368;

    server_name gabsferreira.com;

    root /usr/share/nginx/html;
    index index.html index.htm;

    client_max_body_size 10G;

    location / {
        proxy_pass http://localhost:2368;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_buffering off;
    }
}
我不知道发生了什么,为什么它只在线几个小时


谢谢。

您解决了这个问题吗?事情突然发生了,重启服务器也没用。@Brian看起来问题是我在同一个水滴中运行了两个博客,而且内存不足。我把它们分成了两个不同的液滴,现在看起来还可以。你能从ghost中添加日志文件吗?必须有更多的信息为什么幽灵会崩溃