引出问题![](https://img-blog.csdnimg.cn/dcf46c3422bc427899749fdcdc311cff.png)
解决方案:
首先 win+R,输入cmd。快速打开doc窗口
一、查看端口号对应的进程
查看所有进程信息:netstat -ano | more
查看指定端口进程信息(这里演示的是8080端口):netstat -ano | findstr 8080
netstat -ano | more的用法
netstat -ano | findstr 8080的用法
二、根据pid杀死该进程
此时,占用对应端口号的进程就被终止了。我们就可以使用该端口了~
首先 win+R,输入cmd。快速打开doc窗口
一、查看端口号对应的进程
查看所有进程信息:netstat -ano | more
查看指定端口进程信息(这里演示的是8080端口):netstat -ano | findstr 8080
netstat -ano | more的用法
netstat -ano | findstr 8080的用法
二、根据pid杀死该进程
此时,占用对应端口号的进程就被终止了。我们就可以使用该端口了~