安装
全局安装
npm install pm2 -g
ln -s /root/node-v12.13.0-linux-x64/bin/pm2 /usr/local/bin/pm2
命令
$ pm2 logs
显示所有进程日志
$ pm2 stop all
停止所有进程
$ pm2 restart all
重启所有进程
$ pm2 reload all
0秒停机重载进程 (用于 NETWORKED 进程)
$ pm2 stop 0
停止指定的进程
$ pm2 restart 0
重启指定的进程
$ pm2 startup
产生 init 脚本 保持进程活着
$ pm2 web
运行健壮的 computer API endpoint
$ pm2 delete 0
杀死指定的进程
$ pm2 delete all
杀死全部进程
更多请见:https://blog.csdn.net/weixin_44519496/article/details/120182079
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有