Quantcast
Channel: 钻戒 and 仁豆米
Viewing all articles
Browse latest Browse all 290

pm2的常用命令

$
0
0

启动所有的程序后,保存当前所有程序状态,会生成一个dump.pm2文件

pm2 save  

从pm2 save中恢复所有程序状态

pm2 resurrect  

pm2有Keymetrics这个免费的监控平台,添加监控:

pm2 link [YOUR_SECRET_KEY] [YOUR_PUBLIC_KEY]  

杀掉pm2的God Daemon

pm2 kill  

指定配置文件启动

pm2 start pm2-env.json  

缩放实例的数量:

pm2-meteor scale +2  

指定程序名:

pm2 start app.js  --name "api"  

Viewing all articles
Browse latest Browse all 290

Trending Articles