Ghost nginx 502 ProcessError错误,ghost restart等失效,怎么办?
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.
命令不一样
补充一下,我是用Centos ,会遇到这类问题,官方推荐用ubuntu,我习惯了centossudo systemctl is-active ghost_itlady-com
用这个命令启动ghost,然后用ghost update升级到最新版本
这是关键
Use ghost run to start Ghost without using the configured process manager. This runs Ghost directly, similar to node index.js.
页:
[1]