遇到的解决方案通常是执行netstat -ano | findstr "8080" ,然后去关闭对应的进程
但是我遇到的是8080改成任意一个端口,都报错端口被占用,且使用上面的命令并不能查到对应的进程
网上找到的方案能解决我的问题,原链接所有提供的方案我都试过了,希望大家能少走一点弯路
原文如下:
Make sure to copy this text to your notepad, because you will lose internet connection for a moment.
Open your CMD as an administrator.
Write these commands one by one in order to stop your network:
net stop winnat
net stop LanmanWorkstation
net stop WlanSvc
net stop WwanSvc
Exclude port 1099 from a reserved list:
netsh int ipv4 add excludedportrange protocol=tcp startport=1099 numberofports=4
Start your network again:
net start winnat
net start LanmanWorkstation
net start WlanSvc
net start WwanSvc
只用执行红色部分,就能成功解决了
链接没办法选转载或者翻译(需要原作者同意),见谅