Runtime Edition
PM2 is a Production Process Manager for Node.js applications
with a built-in Load Balancer.
Start and Daemonize any application:
$ pm2 start app.js
Load Balance 4 instances of api.js:
$ pm2 start api.js -i 4
Monitor in production:
$ pm2 monitor
Make pm2 auto-boot at server restart:
$ pm2 startup
To go further checkout:
http://pm2.io/
-------------
返回首页 Not Found 404 NotFoundError: Not Found at /root/express-ffmpeg/app.js:206:8 at Layer.handle [as handle_request] (/root/express-ffmpeg/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/root/express-ffmpeg/node_modules/express/lib/router/index.js:317:13) at /root/express-ffmpeg/node_modules/express/lib/router/index.js:284:7 at Function.process_params (/root/express-ffmpeg/node_modules/express/lib/router/index.js:335:12) at next (/root/express-ffmpeg/node_modules/express/lib/router/index.js:275:10) at /root/express-ffmpeg/node_modules/connect-flash/lib/flash.js:21:5 at Layer.handle [as handle_request] (/root/express-ffmpeg/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/root/express-ffmpeg/node_modules/express/lib/router/index.js:317:13) at /root/express-ffmpeg/node_modules/express/lib/router/index.js:284:7 at Function.process_params (/root/express-ffmpeg/node_modules/express/lib/router/index.js:335:12) at next (/root/express-ffmpeg/node_modules/express/lib/router/index.js:275:10) at /root/express-ffmpeg/app.js:191:3 at Layer.handle [as handle_request] (/root/express-ffmpeg/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/root/express-ffmpeg/node_modules/express/lib/router/index.js:317:13) at /root/express-ffmpeg/node_modules/express/lib/router/index.js:284:7 at Function.process_params (/root/express-ffmpeg/node_modules/express/lib/router/index.js:335:12) at next (/root/express-ffmpeg/node_modules/express/lib/router/index.js:275:10) at SendStream.error (/root/express-ffmpeg/node_modules/serve-static/index.js:121:7) at emitOne (events.js:116:13) at SendStream.emit (events.js:211:7) at SendStream.error (/root/express-ffmpeg/node_modules/send/index.js:270:17) © 2018 云转码express-ffmpeg倾情奉献
[PM2] Spawning PM2 daemon with pm2_home=/root/.pm2 [PM2] PM2 Successfully daemonized [PM2] Starting /root/express-ffmpeg/bin/www in cluster_mode (0 instance) [PM2] Done. ┌─────┬────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐ │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │ ├─────┼────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤ │ 0 │ www │ default │ 0.0.0 │ cluster │ 3183 │ 0s │ 0 │ online │ 0% │ 34.6mb │ root │ disabled │ │ 1 │ www │ default │ 0.0.0 │ cluster │ 3193 │ 0s │ 0 │ online │ 0% │ 29.1mb │ root │ disabled │