node.js - node pm2 如何防止项目误重启删除呢?
黄舟
黄舟 2017-04-17 16:13:35
0
2
477

如题,pm2的项目启动重启删除都简单通过一个命令搞定了,如果使用id操作的话,万一错了怎么办呢?请问pm2的部署方式上有什么容错办法?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(2)
PHPzhong
  • So you need App name. Using App name can reduce the probability of deleting the wrong app. You need to give each of your apps a different name for all commands. Use App name instead of id. App name,用App name操作可以降低你删错应用的概率,你需要给你的每个应用取不同的名字, 所有命令行用App name取代id。

  • 另外如果是线上应用的话,肯定要有正式的发布流程的,发布脚本写好之后,以后的流程规范化。尽量少人工登陆到线上机器去做操作。

  • 所有的所有都只是能降低你出错的概率,无法百分百保证,楼上的同学说的挺好的,看清楚再回车

In addition, if it is an online application, there must be a formal release process. After the release script is written, the subsequent process will be standardized. Try to minimize manual login to the online machine to perform operations. 🎜🎜 🎜🎜All of them can only reduce the probability of you making mistakes. There is no 100% guarantee. The classmate above said it very well, See clearly before entering.🎜🎜 🎜
PHPzhong

The first lesson in operation and maintenance
看清楚再按回车
I use pm2 to operate and maintain more than a dozen nodejs push servers and no problems have been found for the time being. This is fine. Very convenient.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template