解决wind10端口占用

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
::查看所有端口
$netstat -ano  rem

#result:
Active Connections

Proto  Local Address          Foreign Address        State           PID
TCP    0.0.0.0:135            0.0.0.0:0              LISTENING       1088
::过滤指定端口64939获取PID
$netstat -ano | findstr "64939"
::使用pid强制关闭进程
$taskkill /f /pid 3940
#results:
SUCCESS: The process with PID 3940 has been terminated.