[英]How to remove Node js script from pm2 windows startup
I followed the below steps to add my js script to startup in my windows and its working.我按照以下步骤将我的 js 脚本添加到启动 windows 及其工作。
1.npm install pm2 -g 1.npm安装pm2 -g
2.npm install pm2-windows-startup -g 2.npm安装pm2-windows-startup -g
3.pm2-startup install 3.pm2-启动安装
4.pm2 start myApp.js 4.pm2 启动 myApp.js
5.pm2 save 5.pm2 保存
6.reboot 6.重启
7.pm2 ls 7.pm2 ls
Now I wanted to remove my script from startup.现在我想从启动中删除我的脚本。 How do I do it?我该怎么做?
From the official README :来自官方自述文件:
> pm2-startup uninstall
This removes the registry entry that starts the process on startup这将删除启动时启动进程的注册表项
The document in npmjs seems out-of-date, I found the above announcement from their GitHub repo. npmjs 中的文档似乎已过时,我从他们的 GitHub 存储库中找到了上述公告。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.