当前位置:网站首页>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

边栏推荐
- Subtotal of constraintlayout
- Jinglianwen technology provides voice data acquisition and labeling services
- 机器学习笔记 - 监督学习备忘清单
- MFS details (vii) - - MFS client and Web Monitoring installation configuration
- JetPack - - -WorkManger
- 15、 IO stream (I)
- Simple use of event bus
- 105. constructing binary trees from preorder and inorder traversal sequences
- 如何使用望友DFM軟件進行冷板分析
- 数据在内存中的存储(C语言)
猜你喜欢

How to use Wangyou DFM software for cold plate analysis

JetPack - - - LifeCycle、ViewModel、LiveData

景联文科技:数据标注行业现状及解决方案

Dragon Boat Festival wellbeing, use blessing words to generate word cloud

As the new trend of blind box e-commerce, how can the platform use blind box play to drain at low cost?

RFID process management solution for electroplating fixture

机器学习笔记 - 监督学习备忘清单

Analyzing server problems using jvisualvm
![[SketchUp 2021] sketch master's image output and rendering style description [edge setting, plane setting, background setting, watermark setting, modeling setting, sky background creating sky, creatin](/img/95/a86b461c547bab41b2053073275d24.png)
[SketchUp 2021] sketch master's image output and rendering style description [edge setting, plane setting, background setting, watermark setting, modeling setting, sky background creating sky, creatin

Ffmpeg compressed video.
随机推荐
SSM framework integration -- > simple background management
时间格式化工具----moment.js(网页时间实时展示)
Select all select none JS code implementation
Overview of demoplayer program framework design of ijkplayer
Vector control of Brushless DC motor (4): sensorless control based on sliding mode observer
[kernel] two methods of driver compilation: compiling into modules and compiling into the kernel (using miscellaneous device driver templates)
Use of smalidea
Interface oriented programming in C language
15、 IO stream (I)
[case] a super easy-to-use tool -- a calculator for programmers
Gold jewelry enterprise operation mode, beautiful tiantians business solution
Base64 principle
Glide usage notes
That is, after the negative impact of gcat advertising e-commerce, is there no stable advertising e-commerce platform?
Scrcpy source code walk 3 what happened between socket and screen refresh
Detailed explanation of the player startup process of ijkplayer code walkthrough 2
Thread correlation point
[FAQs for novices on the road] understand program design step by step
Kotlin base generics
Command line for database