Created
January 8, 2020 06:03
-
-
Save jack2jm/9f71f71f23df13691b034ee4980ae2f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List: | |
Using below command, you can display all the processes with status. | |
pm2 list | |
----------------------------------------------- | |
Stop: | |
To stop an application, you can use below command. | |
pm2 stop <id|name> | |
//Stop all processes | |
pm2 stop all | |
---------------------------- | |
Restart: | |
Restart the previous app launched by name | |
pm2 restart <id|name> | |
pm2 restart all | |
---------------------------- | |
Delete: | |
stop and delete a process from pm2 process list | |
pm2 delete <id|name> pm2 delete all | |
---------------------------- | |
Details: | |
To get more details about an application | |
pm2 show <id|name> | |
---------------------------- | |
Monitor: | |
To monitor the resource usage of your application | |
pm2 monit pm2 monit <id|name> | |
pm2-monit | |
---------------------------- | |
Kill: | |
To stop the PM2 | |
pm2 kill | |
---------------------------- | |
Logs: | |
Your application logs are stored into server hard disk. | |
pm2 logs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment