跳到主要内容

Ghost nginx 502 ProcessError错误,ghost restart等失效,怎么办?

rocky rocky 2020-1-31 23:28:54 6905 阅读
发表于 2020-1-31 23:28:54 | 显示全部楼层 |阅读模式
itlady.com 遇到这个问题

Message: Command failed: /bin/sh -c sudo -S -p '#node-sudo-passwd#'  systemctl is-active ghost_itlady-com

unknown

Exit code: 3


Debug Information:
    OS: linux, v3.10.0-1062.4.1.el7.x86_64
    Node Version: v10.18.1
    Ghost-CLI Version: 1.12.0
    Environment: production
    Command: 'ghost status'


我试过了ghost restart 、ghost doctor、ghost start 等命令都不行,因为进程是正常的

最后在ghost社区遇到一个解决方案,ghost run 解决了。。。。。

The `ghost run` command is used by the configured Ghost process manager and for debugging. If you're not running this to debug something, you should run `ghost start` instead.


 楼主| 发表于 2020-1-31 23:30:24 | 显示全部楼层

命令不一样

补充一下,我是用Centos ,会遇到这类问题,官方推荐用ubuntu,我习惯了centos

sudo systemctl is-active ghost_itlady-com

用这个命令启动ghost,然后用ghost update升级到最新版本
回复

举报

 楼主| 发表于 2020-2-1 01:39:07 | 显示全部楼层

这是关键

Use ghost run to start Ghost without using the configured process manager. This runs Ghost directly, similar to node index.js.

回复

举报

您需要登录后才可以回帖 登录 | 成为会员 微博登录

本版积分规则

标签云|小黑屋|科技先生

Powered by Discuz! X5.0 © 2001-2026 科技先生|京ICP备07036130号

在本版发帖返回顶部