https://www.cnblogs.com/lwx521/p/7930037.html
先找到占用这个端口的pid
在cmd下输入这个命令
netstat -aon|findstr "9999"
7268 就是pid
C:\Users\lilipo>netstat -ano|findstr 9999
TCP 0.0.0.0:9999 0.0.0.0:0 LISTENING 7268
TCP [::]:9999 [::]:0 LISTENING 7268
然后
taskkill /f /pid 7268 ---占用8080端口的进程号
查看所有进程
netstat -ano
根据查找的pid查看是那个进程占用的
tasklist|findstr "4196"