网站首页 > 博客文章 正文
?1. 场景描述
springcloud微服务,部署一般需要多台服务器配合,开发测试过程中,也需要启动多个实例来进行测试与验证。
2. 问题解决
在idea下,只需要配置下就能启动多个实例,本案例采用在idea下部署2个不同端口的Eureka实例(互为注册)。
2.1 启动成功后界面
说明:idea下启动了两个eureka,一个端口号是8761,一个是8762
2.2 具体配置
2.2.1 配置图
首先选择edit configurations,如图:
跳到配置页面
2.2.2 配置说明
只需要在VM options文本框中增加一个参数:-Dserver.port=端口号就可以了。
示例为:-Dserver.port=8761;-Dserver.port=8762
I’m 「软件老王」,喜欢我的文章欢迎转发及关注,人人为我,我为人人,IT相关经验及人生分享与交流!
猜你喜欢
- 2024-09-18 阿里p7大佬首次分享Spring Cloud学习笔记,带你从0搭建微服务
- 2024-09-18 如何使用 SpringCloud 搭建服务注册中心?
- 2024-09-18 springcloud-microservice 快速构建分布式系统
- 2024-09-18 Eureka搭建分布式SpringCloud项目
- 2024-09-18 Spring Cloud 微服务实战——nacos 服务注册中心搭建(附源码)
- 2024-09-18 Spring cloud + vue + oAuth2.0搭建企业级微服务项目源码分享
- 2024-09-18 Nacos + Spring Cloud Gateway动态路由配置
- 2024-09-18 快速创建 Spring Cloud 应用的 Spring Initializr 使用及原理
- 2024-09-18 Spring Cloud 整合 SkyWalking(spring cloud 整合kafka设置日志级别)
- 2024-09-18 记录Spring Cloud应用在阿里云架构的一次部署
你 发表评论:
欢迎- 最近发表
- 标签列表
-
- powershellfor (55)
- messagesource (56)
- aspose.pdf破解版 (56)
- promise.race (63)
- 2019cad序列号和密钥激活码 (62)
- window.performance (66)
- qt删除文件夹 (72)
- mysqlcaching_sha2_password (64)
- ubuntu升级gcc (58)
- nacos启动失败 (64)
- ssh-add (70)
- jwt漏洞 (58)
- macos14下载 (58)
- yarnnode (62)
- abstractqueuedsynchronizer (64)
- source~/.bashrc没有那个文件或目录 (65)
- springboot整合activiti工作流 (70)
- jmeter插件下载 (61)
- 抓包分析 (60)
- idea创建mavenweb项目 (65)
- vue回到顶部 (57)
- qcombobox样式表 (68)
- vue数组concat (56)
- tomcatundertow (58)
- pastemac (61)
本文暂时没有评论,来添加一个吧(●'◡'●)