记录一个sentinel修改密码方法

docker run --name sentinel --restart=always -p 8858:8858 -d bladex/sentinel-dashboard

使用docker装了sentinel,公司不允许使用默认密码。

使用docker exec -it sentinel /bin/bash进入容器内

在app.jar所在目录下创建application.properties的配置文件

If auth.enabled=false, Sentinel console disable login

auth.username=sentinel

auth.password=sentinel

只需要写上述两句配置,改掉password就可以了。

利用的是springboot项目配置文件优先级方式复写了jar包内的默认配置。

只要不rm掉容器,重新创建,配置就会生效。

其他配置详见github

Sentinel/sentinel-dashboard/src/main/resources/application.properties at 1.8 · alibaba/Sentinel · GitHub

相关推荐
多敲代码防脱发4 天前
Alibaba Sentinel(熔断、限流)(国内下载Sentinel)
java·开发语言·sentinel
2601_962181967 天前
【Spring Cloud Alibaba】Sentinel 服务熔断与流量控制
sentinel
lv__pf9 天前
Sentinel【TL微服务10、11】
java·微服务·sentinel
凤山老林9 天前
高可靠 API 网关架构:Spring Cloud Gateway 集成 Sentinel 实现智能限流、动态路由与安全管控
安全·spring cloud·架构·sentinel
就叫_这个吧11 天前
java springcloud熔断降级组件sentinel基础应用及nacos持久化处理
java·spring cloud·nacos·sentinel
aikopen11 天前
高可用 API 网关限流与微服务过载保护实战:从 Sentinel 动态阈值到 DB 连接池舱壁
数据库·微服务·sentinel
ruleslol14 天前
Sentinel限流
sentinel
肠畔码农14 天前
高可用底座:Redis 哨兵机制(Sentinel)底层内核拆解
redis·bootstrap·sentinel
snow@li18 天前
Sentinel:流量防卫兵/熔断降级
sentinel
LayZhangStrive19 天前
后端通识 - 远程服务调用RPC
网络·网络协议·rpc·sentinel·openfeign·远程服务调用