netstat -aon|findstr "8080" 查看端口
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 11468
TCP 172.27.232.8:53175 200.13.89.3:8080 TIME_WAIT 0
TCP 172.27.232.8:53237 68.178.161.241:8080 TIME_WAIT 0
TCP [::]:8080 [::]:0 LISTENING 11468
TCP [::1]:8080 [::1]:55875 TIME_WAIT 0
TCP [::1]:55874 [::1]:8080 TIME_WAIT 0
tasklist|findstr "11468" 查看进程
java.exe 11468 Console 2 1,526,204 K
taskkill -pid 11468 -f 杀进程
成功: 已终止 PID 为 11468 的进程。 C:\Users\lvym>