netstat -aon|findstr "8080"
tasklist|findstr "6640"
taskkill /im java.exe -f
一、查看端口8080的进程号
C:\Users\Administrator>netstat -aon|findstr "8080"
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 6640
TCP [::]:8080 [::]:0 LISTENING 6640
TCP [::1]:8080 [::1]:61293 TIME_WAIT 0
二、查看进程号 6640 的进程名称
C:\Users\Administrator>tasklist|findstr "6640"
java.exe 6640 Console 25 142,244 K
三、杀死指定的进程
taskkill /im java.exe -f
标签:findstr,8080,端口,占用,6640,关闭,0.0,进程,java
From: https://www.cnblogs.com/windlog/p/16666400.html