techsir 登陆 |注册|TS首页
  首页 快活林 猿氏悟语

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

By: rocky 发表于 2020-2-1 01:39:07 · 3665次点击   回复:2   
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.


3665次点击
2个回复  |  直到 2020-2-1 01:39:07
   
  Reply   
rocky      2020-1-31 23:30:24
补充一下,我是用Centos ,会遇到这类问题,官方推荐用ubuntu,我习惯了centos

sudo systemctl is-active ghost_itlady-com

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

命令不一样

   
  Reply   
rocky      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.

这是关键

添加一条新回复
您需要登录后才可以回帖 登录 | 成为会员 新浪微博登陆

标签云|手机版|科技先生 ( 京ICP备07036130号 Powered by Discuz! X )

GMT+8, 2024-3-29 12:56