简体   繁体   English

永远停止节点js

[英]Forever stop node js

I started my server with 我启动服务器

forever start start.js

And it runs normally, when I tried to stop it with 当我尝试使用以下命令停止运行时,它可以正常运行

forever stopall

It removes from forever list as it should 它应从forever list删除

But when I run lsof -i tcp:3000 my server still appears 但是当我运行lsof -i tcp:3000我的服务器仍然出现

I tried to use kill -9 PROCESS_PID but the process comes back with a different pid, and my server still running 我尝试使用kill -9 PROCESS_PID但是该过程返回了另一个pid,并且我的服务器仍在运行

Can anyone help me with this? 谁能帮我这个? Thanks. 谢谢。

Try using fkill-cli 尝试使用fkill-cli

Install it globally using npm i -g fkill-cli & then run fkill in terminal 使用npm i -g fkill-cli全局安装它,然后在终端中运行fkill

If it is the only process running. 如果是唯一正在运行的进程。 You can use, forever stop 0 您可以使用, forever stop 0

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

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