永远不想开始

时间:2017-05-11 13:47:22

标签: node.js express forever

我学习NodeJS。我有安装了nodejs的ubuntu 16服务器。然后我安装全球快递发电机和永远。接下来,我将一个文件夹写入名为hack-it-up.ru的/ var / www中,并使用express-generator生成应用程序。接下来,我将我的应用程序的端口更改为8081并尝试使用npm start启动它。一切正常。但是......当我试图永远启动我的应用程序时,我遇到了错误。我引用了许多指南,但没有解决它。请帮帮我。谢谢!

root@ashipka:/var/www/hack-it-up.ru# forever start  -l /var/www/forever-logs/hack-it.log -a app.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: app.js
root@ashipka:/var/www/hack-it-up.ru# forever list
info:    Forever processes running
data:        uid  command             script forever pid   id logfile                           uptime
data:    [0] aj4I /usr/local/bin/node app.js 27060   27066    /root/.forever/aj4I.log           STOPPED
data:    [1] wFf4 /usr/local/bin/node app.js 27147   27153    /var/www/forever-logs/hack-it.log STOPPED
root@ashipka:/var/www/hack-it-up.ru# forever stop 0
error:   Forever cannot find process with id: 0

0 个答案:

没有答案