惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
雷峰网
雷峰网
U
Unit 42
Y
Y Combinator Blog
I
InfoQ
P
Proofpoint News Feed
Engineering at Meta
Engineering at Meta
量子位
Microsoft Security Blog
Microsoft Security Blog
B
Blog
The Cloudflare Blog
F
Fortinet All Blogs
Google DeepMind News
Google DeepMind News
MyScale Blog
MyScale Blog
C
Check Point Blog
S
SegmentFault 最新的问题
爱范儿
爱范儿
博客园 - 叶小钗
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Hugging Face - Blog
Hugging Face - Blog
罗磊的独立博客
T
Tailwind CSS Blog

Deed's博客

解决群晖百度套件提示name "baiduapp" dupliacted - Deed's博客 2023年3月16日 Maven项目引入第三方本地jar包 - Deed's博客 2022年8月23日nginx反向代理配置去除前缀 - Deed's博客 2022年8月1日 ts-node 运行报错`Cannot find name 'console'.` 2022年7月13日 Gradle项目打包相关配置 - Deed's博客 2022年6月16日 查看服务器异常IP访问以及处理 - Deed's博客 2022年6月15日 Linux删除用户 - Deed's博客 2022年6月8日 AntDesignPro文档Demo示例[后置拦截器]报错 - Deed's博客 2022年6月8日 React使用umi.js报错Invalid hook call - Deed's博客
2022年6月23日 Windows 杀死进程 - Deed's博客
Mahalalel · 2022-06-23 · via Deed's博客
«

Mahalalel 发布于 阅读:6254 运行环境


背景

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


***************************
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 查看端口占用 杀死进程