当前位置:网站首页>Eureka Client启动后就关闭 Unregistering application xxx with eureka with status DOWN
Eureka Client启动后就关闭 Unregistering application xxx with eureka with status DOWN
2022-07-06 15:59:00 【杰肥啊】
SpringBoot项目在启动之后,无任何报错的情况下,停止了项目。
2018-07-15 10:50:10.523 WARN 16952 — [ Thread-23] com.netflix.discovery.DiscoveryClient : Saw local status change event StatusChangeEvent [timestamp=1531623010523, current=DOWN, previous=UP]
2018-07-15 10:50:10.524 INFO 16952 — [ Thread-23] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 0
2018-07-15 10:50:10.526 INFO 16952 — [ Thread-23] com.netflix.discovery.DiscoveryClient : Shutting down DiscoveryClient …
解决办法
1.查看是否有spring-web依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
2.查看SpringCloud和SpringBoot版本是否对应上(一般没事)
3.端口被占用
第三种情况很难被发现,但是建议大家尝试去看看是不是存在。尤其是一开始好好的,突然过了一段时间运行就不行的情况。接下来我用window系统来讲解大致讲解以下
第一步
首先要知道自己启动的那个SpringBoot项目的访问端口号是哪个,我们假设比如是
8080。第二步
其次,因为当前项目已经停止,也就是说8080按理说不应该被人使用。所以使用以下命令查询一下,打开
命令提示符窗口,window命令如下netstat -ano|findstr "8080"
第三步
最后,打开
任务管理器,找到详细信息这个选项卡,然后把PID排序一下,找到这个占用的程序,直接干掉,然后重启试一下。
边栏推荐
- Modules that can be used by both the electron main process and the rendering process
- leetcode:236. 二叉树的最近公共祖先
- 【无人机】多无人协同任务分配程序平台含Matlab代码
- koa2对Json数组增删改查
- 公链与私链在数据隐私和吞吐量上的竞争
- flinksql select id ,count(*) from a group by id .
- Huawei cloud gaussdb (for redis) unveils issue 21: using Gauss redis to achieve secondary indexing
- Gradle知识概括
- Scholar doctor hahaha
- 人均瑞数系列,瑞数 4 代 JS 逆向分析
猜你喜欢

【通信】两层无线 Femtocell 网络上行链路中的最优功率分配附matlab代码
Docker starts MySQL and -emysql_ ROOT_ Password = my secret PW problem solving

Efficient ETL Testing

不要再说微服务可以解决一切问题了

B站大佬用我的世界搞出卷積神經網絡,LeCun轉發!爆肝6個月,播放破百萬

Nftscan Developer Platform launches Pro API commercial services

11 preparations for Web3 and Decentralization for traditional enterprises

Can online reload system software be used safely? Test use experience to share with you

内网穿透zerotier 外网(手机、电脑等)访问内网设备(树莓派、NAS、电脑等)

js对JSON数组的增删改查
随机推荐
How can Oracle CDC deserialize with jsondebeziumdeserializationschema
Résumé des connaissances de gradle
JS import excel & Export Excel
js导入excel&导出excel
Children's pajamas (Australia) as/nzs 1249:2014 handling process
Microsoft win11 is still "unsatisfactory". Multi user feedback will cause frequent MSI crashes
浅谈现在的弊端与未来的发展
TDengine 社区问题双周精选 | 第二期
Can online reload system software be used safely? Test use experience to share with you
基础图表解读“东方甄选”爆火出圈数据
Nftscan Developer Platform launches Pro API commercial services
11 preparations for Web3 and Decentralization for traditional enterprises
Detailed explanation of regular expression (regexp) in MySQL
None of the strongest kings in the monitoring industry!
Today, I met a senior test developer from Tencent and saw the ceiling of the foundation
亚朵三顾 IPO
What does security capability mean? What are the protection capabilities of different levels of ISO?
Graphite document: four countermeasures to solve the problem of enterprise document information security
Experiment 4: installing packages from Gui
leetcode:236. The nearest common ancestor of binary tree