1.netstat -ano 查看所有的端口
2.netstat -ano|findstr "50000" 查看某一个端口
3.tasklist|findstr "13388" 查看占用这个端口的程序
4.taskkill /f /t /im YoudaoDict.exe 关闭程序
C:\Windows\system32>netstat -aon|findstr "50000"
TCP 127.0.0.1:50000 0.0.0.0:0 LISTENING 13388
C:\Windows\system32>tasklist|findstr "13388"
YoudaoDict.exe 13388 Console 8 20,968 K