PM2相关命令

超过200M内存自动重启:

pm2 start xxx --max-memory-restart 200M

从2s开始每3s重启一次:

pm2 start xxx --cron-restart "2/3 * * * * *"

当文件内容改变自动重启

pm2 start xxx --watch

不自动重启:

pm2 start xxx --no-autorestart

性能监控:

pm2 monit

本文作者:sy0313

本文链接:https://www.cnblogs.com/sunyan97/p/17848551.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   sy0313  阅读(13)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起