node-sails应用程序在服务器上每24小时或更早停止

时间:2015-07-16 04:44:54

标签: node.js sails.js pm2

我在两台服务器上有两个风帆js应用程序,但我在一台服务器上的两个应用程序都在24小时内停止运行,我通常会检查早上的应用程序,并在运行后显示以下内容  pm2 listpm2 restart all: -

[PM2] Spawning PM2 daemon
[PM2] PM2 Successfully daemonized
[PM2][WARN] No process found

每次我必须转到他们的目录并运行命令: - pm2 start app.js单独,但另一台服务器上的两个应用程序都正常工作。
请建议我该怎么办? 谢谢 现在我的服务已停止运行,并在运行pm2后记录其显示:

[PM2] Spawning PM2 daemon
[PM2] PM2 Successfully daemonized
########### Starting streaming logs for [all] process
Can not find log files, try to reload logs by executing "pm2 reload <name|all>".
PM2: 2015-07-17 03:27:22: App name:app id:0 online
PM2: child_process.js:935
PM2:     throw errnoException(process._errno, 'spawn');
PM2:           ^
PM2: Error: spawn ENOMEM
PM2:     at errnoException (child_process.js:988:11)
PM2:     at ChildProcess.spawn (child_process.js:935:11)
PM2:     at exports.spawn (child_process.js:723:9)
PM2:     at Object.exports.execFile (child_process.js:607:15)
PM2:     at exports.exec (child_process.js:578:18)
PM2:     at Object.parseHg [as parse] (/usr/local/lib/node_modules/pm2/node_modules/vizion/lib/hg.js:36:2)
PM2:     at /usr/local/lib/node_modules/pm2/node_modules/vizion/lib/vizion.js:16:24
PM2:     at /usr/local/lib/node_modules/pm2/node_modules/vizion/lib/identify.js:18:12
PM2:     at /usr/local/lib/node_modules/pm2/node_modules/async/lib/async.js:151:21
PM2:     at /usr/local/lib/node_modules/pm2/node_modules/vizion/lib/identify.js:12:16
PM2: 2015-07-20 06:23:46: [PM2][WORKER] Started with refreshing interval: 30000
PM2: 2015-07-20 06:23:46: [[[[ PM2/God daemon launched ]]]]
PM2: 2015-07-20 06:23:46: BUS system [READY] on port /root/.pm2/pub.sock
PM2: 2015-07-20 06:23:46: RPC interface [READY] on port /root/.pm2/rpc.sock

并在运行pm2 list或pm2后重启所有显示:

[PM2] Spawning PM2 daemon
[PM2] PM2 Successfully daemonized
[PM2][WARN] No process found

请帮助我完全陷入困境。

由于

0 个答案:

没有答案