如何在Linux中杀死Node.js进程? [英] How to kill a nodejs process in Linux?
本文介绍了如何在Linux中杀死Node.js进程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 9631/node
如何在linux(ubuntu)中终止该过程?
How do I kill this process in linux(ubuntu)?
推荐答案
sudo netstat -lpn |grep :'3000'
3000是我一直在寻找的端口, 执行第一个命令后,您将拥有该端口的进程ID
3000 is port i was looking for, After first command you will have Process ID for that port
kill -9 1192
在我的情况下,
1192是在3000 PORT上运行的进程的进程ID 用-9强制杀死进程
in my case 1192 was process Id of process running on 3000 PORT use -9 for Force kill the process
这篇关于如何在Linux中杀死Node.js进程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文