feat: adjust doc/pm2.md
This commit is contained in:
parent
37e5249974
commit
6ddba300d2
16
doc/pm2.md
16
doc/pm2.md
|
@ -41,18 +41,6 @@ npm install pm2 -g && pm2 update
|
|||
pm2 completion install
|
||||
```
|
||||
|
||||
* start the service as npm start script with PM2
|
||||
```
|
||||
cd ~/git/data-api/
|
||||
grep start package.json
|
||||
pm2 start --name api-data.vbn.de npm -- start --watch
|
||||
```
|
||||
|
||||
* register/save the current list of processes you want to manage using PM2 so that they will re-spawn at system boot (every time it is expected or an unexpected server restart)
|
||||
```
|
||||
pm2 save
|
||||
```
|
||||
|
||||
* restart/logout/login your system, and check if all the serviceis running under PM2
|
||||
```
|
||||
pm2 ls
|
||||
|
@ -69,8 +57,8 @@ pm2 monit
|
|||
|
||||
* view details of a single Node process using the process ID or name
|
||||
```
|
||||
pm2 show 0
|
||||
pm2 show api-data.vbn.de
|
||||
pm2 show <id>
|
||||
pm2 show <name>
|
||||
```
|
||||
|
||||
* list of some common process (single or all) management command
|
||||
|
|
Loading…
Reference in New Issue