pm2-server-monit
Administrator@lenovo-PC MINGW64 /e/jackieli/longyuanWork/angular-longyuan-store- front-mobile (master)
$ pm2 stop all
[PM2][WARN] No process found
┌──────────┬────┬──────┬─────┬────────┬─────────┬────────┬─────┬─────┬────────── ┐
│ App name │ id │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ watching │
└──────────┴────┴──────┴─────┴────────┴─────────┴────────┴─────┴─────┴────────── ┘
Module activated
┌──────────────────┬─────────┬────────────┬────────┬─────────┬─────┬──────────── ─┐
│ Module │ version │ target PID │ status │ restart │ cpu │ memory │
├──────────────────┼─────────┼────────────┼────────┼─────────┼─────┼──────────── ─┤
│ pm2-server-monit │ 2.5.3 │ N/A │ online │ 0 │ 0% │ 29.578 MB │
└──────────────────┴─────────┴────────────┴────────┴─────────┴─────┴──────────── ─┘
Use `pm2 show <id|name>` to get more details about an app
Administrator@lenovo-PC MINGW64 /e/jackieli/longyuanWork/angular-longyuan-store- front-mobile (master)
$ pm2 uninstall pm2-server-monit
[PM2][Module] Uninstalling module pm2-server-monit
[PM2] Applying action deleteProcessId on app [0](ids: 0)
[PM2] [pm2-server-monit](0) ✓
In memory process deleted
Administrator@lenovo-PC MINGW64 /e/jackieli/longyuanWork/angular-longyuan-store- front-mobile (master)
$ pm2 list
┌──────────┬────┬──────┬─────┬────────┬─────────┬────────┬─────┬─────┬────────── ┐
│ App name │ id │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ watching │
└──────────┴────┴──────┴─────┴────────┴─────────┴────────┴─────┴─────┴────────── ┘
Use `pm2 show <id|name>` to get more details about an app
Administrator@lenovo-PC MINGW64 /e/jackieli/longyuanWork/angular-longyuan-store-
pm2 install pm2-server-monit
监控运行状态 npm卸载失败要使用pm2 uninstall pm2-server-monit