简体   繁体   English

带有Node.js的PM2-“取消保存”进程列表?

[英]PM2 with Node.js — “unsave” a process list?

Following this doc: http://pm2.keymetrics.io/docs/usage/startup/#saving-current-process-list 遵循此文档: http : //pm2.keymetrics.io/docs/usage/startup/#saving-current-process-list

pm2 save will save the current process list to $PM2_HOME/.pm2/dump.pm2 pm2 save将当前进程列表保存到$PM2_HOME/.pm2/dump.pm2

That all works perfectly, but how do I "un-save"? 一切正常,但是如何“取消保存”?

Obviously can just delete the dump.pm2 but I have no idea of the repercussions or potential artifacts left from doing that. 显然可以只删除dump.pm2但我不知道这样做会带来的影响或潜在的dump.pm2

Process lists are saved in the file: $PM2_HOME/dump.pm2 进程列表保存在文件中: $PM2_HOME/dump.pm2

To unsave all processes, run the command: 取消保存所有进程,请运行以下命令:

pm2 cleardump

This replaces dump.pm2 with a fresh file. 这将使用新文件替换dump.pm2 Warning: this cannot be undone. 警告:此操作无法撤消。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM