windows 查看被占用端口号

netstat -ano | findstr "端口号"

例如:

 杀死占用端口的进程:

taskkill /f /t /im "进程号"

原文地址:https://www.cnblogs.com/zjfblog/p/13692431.html