当前位置:网站首页>Eureka server multi node deployment
Eureka server multi node deployment
2022-06-13 06:44:00 【Night ask】
1.pom file
springboot The version should not be too high, which will cause errors , I used it here 2.0.1 Version of
2. The configuration file
---
spring:
application:
name: ad-eureka
profiles: server1
server:
port: 8000
eureka:
instance:
hostname: server1
prefer-ip-address: false
client:
service-url:
defaultZone: http://server2:8001/eureka/,http://server3:8002/eureka/
---
spring:
application:
name: ad-eureka
profiles: server2
server:
port: 8001
eureka:
instance:
hostname: server2
prefer-ip-address: false
client:
service-url:
defaultZone: http://server1:8000/eureka/,http://server3:8002/eureka/
---
spring:
application:
name: ad-eureka
profiles: server3
server:
port: 8002
eureka:
instance:
hostname: server3
prefer-ip-address: false
client:
service-url:
defaultZone: http://server1:8000/eureka/,http://server2:8001/eureka/
3. modify host file
4. Simple project packaging
Start under the project file first cmd
Carry out orders
mvn clean package -Dmaven.test.skip=true -U
Start the first service , There will be an error , It doesn't exist at this time servr2 and server3
java -jar ad-eureka-1.0-SNAPSHOT.jar --spring.profiles.active=server1
However, you can still enter the service registry
边栏推荐
- JetPack - - - Navigation
- Use of smalidea
- The web server failed to start Port 7001 was already in use
- Base64 principle
- Scrcpy development environment construction and source code reading
- vue3路由缓存组件状态以及设置转场动画
- MFS詳解(七)——MFS客戶端與web監控安裝配置
- JetPack - - -WorkManger
- JNI's bitmap grayscale image (rgba_8888 and rgb_565)
- How to quickly support the team leader to attract new fission users in the business marketing mode of group rebate?
猜你喜欢
15、 IO stream (I)
ML之FE:Vintage曲线/Vintage分析的简介、计算逻辑、案例应用之详细攻略
JetPack - - -WorkManger
上位机开发(固件下载软件之架构设计)
[2022 college entrance examination season] what I want to say as a passer-by
What is online blind box e-commerce? Can blind box e-commerce become a new bonus market for the Internet?
[FAQs for novices on the road] understand program design step by step
Chain 2+1 reward, what kind of mode is beautiful everyday seconds?
JS case Xiaomi second kill countdown New Year Countdown
Data storage in memory (C language)
随机推荐
Socket programming server and client (multiple clients can connect to the same port of a server at the same time)
Custom view subtotal
Excel data into database
Kotlin base generics
上位机开发(固件下载软件之详细设计)
Analysis of synchronized
Common websites and tools
1154. day of the year
An article allows you to quickly understand the fission growth password of social e-commerce user marketing and avoid stepping on the pit
Detailed explanation of scrcpy client code walk through H264 raw stream decoding process
MFS explanation (V) -- MFS metadata log server installation and configuration
Simple use of event bus
RFID process management solution for electroplating fixture
上位机开发(固件下载软件之架构设计)
Interface oriented programming in C language
Scrcpy source code walk 3 what happened between socket and screen refresh
【sketchup 2021】草图大师的图像输出与渲染之样式说明【边线设置、平面设置、背景设置、水印设置、建模设置、天空背景创建天空、利用水印背景创建天空(重要)】
105. constructing binary trees from preorder and inorder traversal sequences
Kotlin collaboration process +flow download case
Thread pool learning