Ghost blog 运行ghost start时命令失败

Ghost blog 运行ghost start时命令失败,ghost-blog,ghost,Ghost Blog,Ghost,新安装,正在尝试运行ghost start我收到以下错误: Debug Information: OS: Raspbian, v8.0 Node Version: v6.13.0 Ghost-CLI Version: 1.5.2 Environment: production Command: 'ghost start' An error occurred. Message: 'Command failed: /bin/sh -c systemctl is

新安装,正在尝试运行
ghost start
我收到以下错误:

Debug Information:
    OS: Raspbian, v8.0
    Node Version: v6.13.0
    Ghost-CLI Version: 1.5.2
    Environment: production
    Command: 'ghost start'
An error occurred.
Message: 'Command failed: /bin/sh -c systemctl is-active ghost_blog-dev

unknown
'

Stack: Error: Command failed: /bin/sh -c systemctl is-active ghost_blog-dev

unknown

    at makeError (/usr/lib/node_modules/ghost-cli/node_modules/execa/index.js:169:9)
    at module.exports.sync (/usr/lib/node_modules/ghost-cli/node_modules/execa/index.js:338:15)
    at handleShell (/usr/lib/node_modules/ghost-cli/node_modules/execa/index.js:116:9)
    at Function.module.exports.shellSync (/usr/lib/node_modules/ghost-cli/node_modules/execa/index.js:361:43)
    at SystemdProcessManager.isRunning (/usr/lib/node_modules/ghost-cli/extensions/systemd/systemd.js:88:19)
    at Instance.running (/usr/lib/node_modules/ghost-cli/lib/instance.js:120:34)
    at StartCommand.run (/usr/lib/node_modules/ghost-cli/lib/commands/start.js:28:22)
    at precheck.then (/usr/lib/node_modules/ghost-cli/lib/command.js:159:52)
    at process._tickCallback (internal/process/next_tick.js:109:7)
    at Module.runMain (module.js:613:11)
    at run (bootstrap_node.js:387:7)
    at startup (bootstrap_node.js:153:9)
    at bootstrap_node.js:500:3
Code: 3
如果我手动运行的命令是failed,它似乎执行时没有错误,尽管我不确定它是做什么的。我认为这与使用nginx检查ghost是否已经启动有关


任何建议都会很有帮助!谢谢大家!

我也面临同样的问题。您应该使用以下命令将服务文件添加到etc目录中,并作为符号链接:

sudo ln-sf/var/www/html/your blog/system/files/ghost\u blog-yourblog.service/etc/systemd/system/ghost\u blog-yourblog.service

添加此命令后,应执行以下命令:

sudo systemctl stop ghost_blog-yourblog.service
sudo systemctl start ghost_blog-yourblog.service

然后,我希望您能看到
is active
命令的“active”结果。

运行
systemctl is active ghost\u blog-dev
会产生什么?我最初运行它时使用的是
sh-c systemctl is active ghost\u blog-dev
,它似乎会产生一系列服务,比如cron、nginx、smbd、ssh等等。。。以及它们当前的运行状态以及有关连接设备的一些信息。我现在再次尝试它,开始时没有使用
sh-c
,结果是:
unknown
,我想这意味着它没有找到“ghost\u blog-dev”这是有意义的,因为它无法启动。我通过运行
sudo systemctl start ghost\u blog-dev.service
然后运行
ghost start
使ghost启动,这给出了一个错误:
ghost已经在运行。使用重影ls查看详细信息
。但无论如何从这一点开始。之后,我可以调用
ghost restart
,它将正确地重新启动,但如果我重新启动系统,它不会再次启动,除非我再次执行相同的操作。有什么想法吗?谢谢有同样的问题,也可以手动启动,省略
sh-c
。谢谢如果你有关于这个问题的更多信息,请告诉我。不,对不起,我放弃了,改用WordPress。节省我的时间!我尝试在centos上安装ghost:
OS:centos Linux,v7节点版本:v12.10.0 ghost CLI版本:1.13.1环境:生产命令:“ghost安装
遇到此错误。可能在路径
/lib/systemd/system
上创建符号链接是不够的。在路径
/etc/systemd/system
上添加项次后。鬼装通行证!在寻找了几个小时后,这对我很有帮助(AWS EC2)。谢谢merttasci:)在执行上述步骤之前,我还需要执行
ghost setup linux user
&
ghost setup systemd
,仅供参考