What is the difference between rebooting pm2 and rebooting pm2

I have a nodejs application running on a server.

When should I use pm2 restart , and when should I use pm2 reload ?

It refers to pm2 here , but could not understand the difference in the case of using these two.

+4
source share
2 answers

The difference is fixed here :

Unlike restart, which kills and restarts the process, it reloadrestarts for 0 seconds.

The latter means (found here ):

Function

PM2 reload <app name> , - , , .

+6

, 4 , pm2 40 , ss -lnt | grep; , .

-1

Source: https://habr.com/ru/post/1680626/


All Articles