需要以管理员运行cmd

 

显示哪个进程占用端口

netstat  -aon|findstr 8080

得到

TCP 0.0.0.0:8001 0.0.0.0:0 LISTENING 13668
TCP [::]:8001 [::]:0 LISTENING 13668

 

关闭进程

taskkill /F /PID 13668