无法永远运行Ghost

时间:2015-06-19 06:09:31

标签: node.js ubuntu ghost-blog

我按照官方Ghost文档(here)了解如何在我的AWS免费层Ubuntu框中安装和运行forever,如下所示:

永久安装sudo npm install forever -g作为ubuntu用户。 从NODE_ENV=production forever start index.js开始,然后获取:

warn:    --minUptime not set. Defaulting to: 1000ms
warn:    --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
info:    Forever processing file: index.js

我无法访问我的博客,如果我执行forever list我得到:

info:    Forever processes running
data:        uid  command         script   forever pid  id logfile                        uptime  
data:    [0] _hf3 /usr/bin/nodejs index.js 5034    5036    /home/ubuntu/.forever/_hf3.log STOPPED 

我也尝试过与ghost用户相同的过程:

$ NODE_ENV=production forever start index.js
warn:    --minUptime not set. Defaulting to: 1000ms
warn:    --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
info:    Forever processing file: index.js

$ forever list
info:    Forever processes running
data:        uid  command         script   forever pid  id logfile                       uptime      
data:    [0] wOoE /usr/bin/nodejs index.js 5087    9973    /home/ghost/.forever/wOoE.log 0:0:0:1.684 
data:    [1] cL9U /usr/bin/nodejs index.js 8515    9967    /home/ghost/.forever/cL9U.log 0:0:0:2.966 
data:    [2] igDw /usr/bin/nodejs index.js 9481    9965    /home/ghost/.forever/igDw.log 0:0:0:3.236 

0 个答案:

没有答案