场景
早上拉了新代码,准备开启服务。突然控制台爆出
Verify the connector's configuration, identify and stop any process that's listening on port 8082, or configure this application to listen on another port.
说明我的端口8082被占用了。所以接下来我要关闭8082端口号
操作步骤
- 通过cmd窗口进入dos命令窗口或者win+r快捷键,输入cmd进入dos窗口
- 输入命令:netstat -ano,从中查找你需要关闭的端口号;
你也可以加上管道精准查看如下:
netstat -aon | findstr "8082"
3.记住对应的PID 进程号
4.执行taskkill命令结束进程
祝点赞的小伙伴,事事顺心,天天开心。😁