«

2022年6月23日 Windows 杀死进程

时间:2022-6-23 16:04     作者:Mahalalel     分类: 运行环境


背景

小编服务上午启动起来,跑的好好地,下午看的时候,发现报了这样一个异常


***************************
APPLICATION FAILED TO START
***************************

Description:

The Tomcat connector configured to listen on port 1001 failed to start. The port may already be in use or the connector may be misconfigured.

Action:

Verify the connector's configuration, identify and stop any process that's listening on port 1001, or configure this application to listen on another port.

Eureka服务和Gateway服务,都是相同的异常,服务直接宕机了!

小编重启ide都没法解决问题。

说明有服务在占用了端口号,把Eureka服务和Gateway服务挤掉了。

解决

1、修改服务的端口号

简单粗暴,直接修改工程中的启动端口号,但是这样的话,修改的地方有点多!

2、杀死占用端口的进程

2.1、查看端口进程

netstat -aon | findStr "1001"

查看进程1

2.2、杀死进程

taskkill /pid 15136 /f

杀死进程

重新运行项目即可

标签: Windows 查看端口占用 杀死进程