pm2 试用

  • pm2 start app.js --name tcp-owner
  • pm2 stop 0
  •  pm2 flush 删除日志
  • pm2 logs --lines 200 0 查看日志
  • pm2 monit  查看所有进程 
  • pm2 describe 0 查看进程的所有信息
  • pm2 restart all
  • pm2 reloadLogs 

  1. 文档:http://pm2.keymetrics.io/docs/usage/quick-start/
  2. PM2 can automatically restart your application when a file is modified in the current directory or its subdirectories:

    pm2 start app.js --watch
    

    If --watch is enabled, stopping it won’t stop watching:

    • pm2 stop 0 will not stop watching
    • pm2 stop --watch 0 will stop watching
    可以检测问价改动,自动重启  --watch




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值