以解决8080端口为例:
1.查看8080端口的进程。netstat -ano|findstr 8080,效果如下:
2.关闭进程:taskkill /pid 8716 /f,效果如下。
也可打开任务管理器的窗口 。