pm2 restart 和 pm2 reload 有什么区别
What is the difference between pm2 restart and pm2 reload
我在服务器上有一个 nodejs 应用程序 运行。
什么时候用pm2 restart,什么时候用pm2 reload?
这里参考了pm2 documention,但是没搞清楚两者在用例上的区别
记录了差异 here:
As opposed to restart
, which kills and restarts the process, reload
achieves a 0-second-downtime reload.
后面的意思是(发现here):
With reload, pm2
restarts all processes one by one, always keeping at least one process running.
它还指出:
If the reload system hasn’t managed to reload your application, a timeout will fallback to a classic restart.
我在服务器上有一个 nodejs 应用程序 运行。
什么时候用pm2 restart,什么时候用pm2 reload?
这里参考了pm2 documention,但是没搞清楚两者在用例上的区别
记录了差异 here:
As opposed to
restart
, which kills and restarts the process,reload
achieves a 0-second-downtime reload.
后面的意思是(发现here):
With reload,
pm2
restarts all processes one by one, always keeping at least one process running.
它还指出:
If the reload system hasn’t managed to reload your application, a timeout will fallback to a classic restart.