【发布时间】:2017-09-20 00:49:52
【问题描述】:
我最近在我的 AWS ec2 Ubuntu 16.04 服务器上安装了 Ghost 1.8.4 和 Nginx。当我加载我的博客站点时,它正确地将我带到了 Ghost 主页,我从那里登录到 Ghost 管理员。在管理屏幕上,有一条消息要更新。
我在腻子中运行ghost update
更新似乎是成功的,但是当我返回我的博客站点时,我收到了以下错误:
502 错误网关 nginx/1.10.3 (Ubuntu)
- 有谁知道这个错误的可能原因以及如何解决?
- 我查看了一些帖子,这些帖子表明我应该在更新之前关闭 Ghost。如果这是真的,我的 ghost 安装现在是否已损坏?
-
我去了
/var/www/ghost中的ghost目录并尝试运行:sudo service ghost start但它返回了:
Failed to start ghost.service: Unit ghost.service not found并试图停止,返回
Unit ghost.service not loaded。我是否从正确的位置运行命令?
【问题讨论】:
-
which ghost的任何输出? -
@TarunLalwani,Ghost CMS ghost.org 通过 CLI 安装
-
不,我的意思是从终端
which ghost和ghost start执行命令会给你带来什么? -
@TarunLalwani,
which ghost返回/usr/bin/ghost当我转到var/www/ghost并运行ghost start我得到:✖ Starting Ghost An error occurred. Message: 'EACCES: permission denied, open '/var/www/ghost/.ghost-cli'' Debug Information: Node Version: v6.11.3 Ghost-CLI Version: 1.1.1 Environment: production Command: 'ghost start' Additional log info available in: /home/ubuntu/.ghost/logs/ghost-cli-debug-2017-09-23T04_00_01_360Z.log Please refer to https://docs.ghost.org/docs/v1/troubleshooting#section-cli-errors for troubleshooting. -
你试过
sudo ghost start
标签: nginx ghost-blog ghost