windows查看端口占用

1.查看端口
運行cmd命令,輸入python

netstat -ano|findstr "50003"

運行結果:
code

PID爲 16720blog

2.查看佔用程序
運行命令,輸入cmd

tasklist|findstr "16720"

運行結果:
程序

3.終止佔用程序
運行命令,輸入im

taskkill /f /t /im python.exe

運行結果:
img

相關文章
相關標籤/搜索