DOS 查看端口占用,Kill线程

查看端口占用

C:\Users\1>netstat -aon|findstr "8020"
TCP 0.0.0.0:8020 0.0.0.0:0 LISTENING 14680
TCP 127.0.0.1:8020 127.0.0.1:60823 TIME_WAIT 0
TCP 127.0.0.1:8020 127.0.0.1:60824 TIME_WAIT 0
TCP 127.0.0.1:8020 127.0.0.1:60827 TIME_WAIT 0
TCP 192.168.1.101:8020 192.168.1.101:60806 TIME_WAIT 0

查看端口的进程

C:\Users\1>tasklist|findstr "14680"

rcp.exe 14680 Console 14 376,512 K

杀死进程

C:\Users\1>taskkill /f /im rcp.exe /t

posted @ 2018-02-03 18:47  Always_July  阅读(205)  评论(0编辑  收藏  举报