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

相关文章
相关标签/搜索