杀掉window占用端口

C:\Users\peihp>netstat -aon|findstr "8080"
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 5600
TCP [::]:8080 [::]:0 LISTENING 5600

C:\Users\peihp>tasklist|findstr "5600"
javaw.exe 5600 Console 3 490,224 K

C:\Users\peihp>taskkill /f /t /im javaw.exe
成功: 已终止 PID 5600 (属于 PID 5848 子进程)的进程。

posted @ 2015-09-07 10:42  大鹏520  阅读(263)  评论(0编辑  收藏  举报