mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-03 05:54:59 +00:00
Update cheatsheets
This commit is contained in:
38
pm2
Normal file
38
pm2
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pm2
|
||||
|
||||
> Process manager for Node.js.
|
||||
> Used for log management, monitoring and configuring processes.
|
||||
> More information: <https://pm2.keymetrics.io>.
|
||||
|
||||
- Start a process with a name that can be used for later operations:
|
||||
|
||||
`pm2 start {{app.js}} --name {{application_name}}`
|
||||
|
||||
- List processes:
|
||||
|
||||
`pm2 list`
|
||||
|
||||
- Monitor all processes:
|
||||
|
||||
`pm2 monit`
|
||||
|
||||
- Stop a process:
|
||||
|
||||
`pm2 stop {{application_name}}`
|
||||
|
||||
- Restart a process:
|
||||
|
||||
`pm2 restart {{application_name}}`
|
||||
|
||||
- Dump all processes for resurrecting them later:
|
||||
|
||||
`pm2 save`
|
||||
|
||||
- Resurrect previously dumped processes:
|
||||
|
||||
`pm2 resurrect`
|
||||
Reference in New Issue
Block a user