根据端口号查询进程
C:\Users\root>netstat -ano|findstr "8106"
TCP 0.0.0.0:8106 0.0.0.0:0 LISTENING 10744
TCP [::]:8106 [::]:0 LISTENING 10744
根据进程号查询应用名称
C:\Users\root>tasklist|findstr "10744"
javaw.exe 10744 Console 1 890,712 K
关闭占用应用
C:\Users\root>taskkill /f /t /im javaw.exe
SUCCESS: The process with PID 10744 (child process of PID 2412) has been terminated.
SUCCESS: The process with PID 10688 (child process of PID 11256) has been terminated.