更改sentinel 默认端口号(8080)
Sentinel
alibaba/Sentinel: Sentinel 是阿里巴巴开源的一款面向分布式服务架构的流量控制、熔断降级组件,提供实时监控、限流、降级和系统保护功能,适用于微服务治理场景。
项目地址:https://gitcode.com/gh_mirrors/sentine/Sentinel
·
不少小伙伴在微服务中使用sentinel 都会碰到8080端口被占用的问题。
找到sentinel-dashboard.jar包,在当前目录打开cmd,
在控制台输入以下命令将默认的端口号改为8070,这个端口号可以自己选择,不被占用的端口号均可。
java -Dserver.port=8070 -Dcsp.sentinel.dashboard.server=localhost:8070 -Dproject.name=sentinel-dashboard -jar sentinel-dashboard.jar
我这里的sentinel jar 包的名字是sentinel-dashboard.ja,大家要看下自己的sentinel jar 包名,一般下载之后后边是带有版本号的:
更改完之后本次启动sentinel端口号就变为了8070了,但是这是一种临时更改,下次重新启动的时候sentinel 的默认端口还是8080的。
alibaba/Sentinel: Sentinel 是阿里巴巴开源的一款面向分布式服务架构的流量控制、熔断降级组件,提供实时监控、限流、降级和系统保护功能,适用于微服务治理场景。
最近提交(Master分支:3 个月前 )
222670e6
* fix: Endpoint#toString host formatting; add Endpoint unit test
* test: remove empty EndpointTest.java (fix accidental PR changes)
---------
Signed-off-by: 赖尧 <yujitang_2006@qq.com> 2 天前
e7a9c560
* chore: remove node_modules from git & add to .gitignore
* fix(docs): normalize README table style (MD060) across adapters and cluster modules
* docs: fix compact table style in parameter flow README
* docs: fix markdownlint MD009 and MD060 in README files
* docs: fix table format in parameter-flow-control README (MD060/MD009)
* docs: fix table format in spring-webmvc README files (MD060/MD009)
* fix: restore UTF-8 encoding and fix markdownlint errors
* fix: wrap remaining bare URLs with angle brackets (MD034)
* fix: remove trailing spaces from table rows (MD009)
---------
Signed-off-by: 赖尧 <yujitang_2006@qq.com> 6 天前
AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。
更多推荐


所有评论(0)