https://jingyan.baidu.com/article/cbcede0759dc5102f50b4d40.html
1.cmd 命令:netstat -ano ,列出所有端口;
2.查找“8080”端口被哪个程序占用:
netstat -aon|findstr "8080"
netstat -ano|findstr 80
3.tasklist|findstr "10580",查看是哪个进程或者程序占用了 8080 端口;
4.wmic process where name="java.exe" get processid,executablepath,name 查找 java.exe 进程的运行路径;
5.结束该进程,输入命令:taskkill /f /t /im java.exe