node js 调试出现同一个端口启动多次报错处理方案 Error: listen EADDRINUSE

windows 下

1、查询端口占用的进程ID:

  netstat -aon | findstr "80"    80为端口号,

  输出为: TCP    0.0.0.0:3000           0.0.0.0:0              LISTENING       10820

2、查看端口号所对应的应用程序:

   tasklist | findstr "  10820"

  node.exe                     10820 Console                    2     34,020 K

3、终止进程 

   taskkill /pid 10820 /F 

  成功: 已终止 PID 为 10820 的进程。

   注意:两个/前面是要有空格的,后面没空格

原文地址:https://www.cnblogs.com/wxiaona/p/7525338.html