jackieli123723 / jackieli123723.github.io

✅lilidong 个人博客
9 stars 0 forks source link

pm2-server-monit 在win7下重复调用dos的bug修复 #46

Open jackieli123723 opened 6 years ago

jackieli123723 commented 6 years ago

pm2 install pm2-server-monit

监控运行状态 npm卸载失败要使用pm2 uninstall pm2-server-monit

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-