Quantcast
Channel: CNode:Node.js专业中文社区
Viewing all articles
Browse latest Browse all 14821

pm2 在unbuntu上不能运行服务

$
0
0

代码在本地的mac ox环境上能运行,但是放到ubuntu上就不行了 先pm2 start app.js,显示如下 Name │ mode │ status │ ↺ │ cpu │ memory │ ├──────┼──────┼────────┼───┼─────┼───────────┤ │ app │ fork │ online │ 0 │ 4% │ 16.6 MB │ 然后pm2 list 显示如下 Name │ mode │ status │ ↺ │ cpu │ memory │ ├──────┼──────┼─────────┼────┼─────┼────────┤ │ app │ fork │ errored │ 15 │ 0% │ 0 B │ 日志错误显示如下 PM2 | 2017-02-22 10:21:14: Starting execution sequence in -fork mode- for app name:app id:0 PM2 | 2017-02-22 10:21:14: App name:app id:0 online PM2 | 2017-02-22 10:21:14: App [app] with id [0] and pid [15514], exited with code [1] via signal [SIGINT] PM2 | 2017-02-22 10:21:14: Starting execution sequence in -fork mode- for app name:app id:0 PM2 | 2017-02-22 10:21:14: App name:app id:0 online PM2 | 2017-02-22 10:21:14: App [app] with id [0] and pid [15523], exited with code [1] via signal [SIGINT] PM2 | 2017-02-22 10:21:14: Starting execution sequence in -fork mode- for app name:app id:0 PM2 | 2017-02-22 10:21:14: App name:app id:0 online PM2 | 2017-02-22 10:21:15: App [app] with id [0] and pid [15532], exited with code [1] via signal [SIGINT] PM2 | 2017-02-22 10:21:15: Script /node/jade+express/app.js had too many unstable restarts (16). Stopped. “errored”

在本地不会有这样的错误,3000端口和80端口都试过了,在服务器上都有错,求大神解救


Viewing all articles
Browse latest Browse all 14821

Trending Articles