mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 15:33:50 +02:00
pm2: add page (#1306)
* pm2: add page * Make Travis happy * Added pm2 restart * Simplifying examples * Fixed typo
This commit is contained in:
parent
3a858a93af
commit
7fd90b1d58
1 changed files with 24 additions and 0 deletions
24
pages/common/pm2.md
Normal file
24
pages/common/pm2.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# pm2
|
||||
|
||||
> Process manager for Node.js.
|
||||
> Used for log management, monitoring and configuring processes.
|
||||
|
||||
- Start a process with a name that can be used for later operations:
|
||||
|
||||
`pm2 start {{app.js}} --name {{myapp}}`
|
||||
|
||||
- List processes:
|
||||
|
||||
`pm2 list`
|
||||
|
||||
- Monitor all processes:
|
||||
|
||||
`pm2 monit`
|
||||
|
||||
- Stop process:
|
||||
|
||||
`pm2 stop {{myapp}}`
|
||||
|
||||
- Restart process:
|
||||
|
||||
`pm2 restart {{myapp}}`
|
Loading…
Add table
Reference in a new issue