WINDOWS 下查找指定端口的进程并解除端口占用
记录原因:
IDEA启动项目式报错:Identify and stop the process that's listening on port 9303 or configure this application to listen on another port.
解决办法:CMD
1.C:\Users\Administrator>netstat -ano | findstr :9303
输出如下:
TCP 0.0.0.0:9303 0.0.0.0:0 LISTENING 14476
TCP [::]:9303 [::]:0 LISTENING 14476
2.执行杀进程命令:
C:\Users\Administrator>taskkill /F /PID 14476
成功: 已终止 PID 为 14476 的进程。
然后在启动服务,正常----