记录一个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

相关推荐
行者-全栈开发21 小时前
SpringBoot 熔断降级实战:Resilience4j 与 Sentinel 双方案深度对比与落地
spring boot·后端·sentinel
txxzjmzlh5 天前
Alibaba Sentinel
sentinel
小南家的青蛙12 天前
Sentinel实战指南
sentinel
时间的拾荒人15 天前
Redis 哨兵(Sentinel)详解:原理、选举机制与实战部署
redis·面试·架构·sentinel
博风21 天前
SCA:二、Sentinel熔断、降级、限流
sentinel
露天赏雪23 天前
第3篇:Sentinel熔断降级实战:大模型接口抖动时的服务兜底方案
java·开发语言·人工智能·spring boot·spring·servlet·sentinel
凯基迪科技1 个月前
圣天诺Sentinel LDK加密锁复制难点逆向分析
sentinel
Promising_GEO1 个月前
GEE实战02期:从卫星波段开始:利用 Sentinel-2 自己计算 NDVI
java·sentinel·遥感·空间分析
我不会起名字3221 个月前
Redis 从 0 到 1(九):主库宕机 30 秒自动切主——1 主 2 从 3 哨兵 + Go 客户端
redis·docker·sentinel·高可用·哨兵
Msshu1231 个月前
PD快充诱骗取电芯片工作原理,XSP17诱骗取电5V9V12V15V20V功能测试
spring boot·spring cloud·sentinel·java-rocketmq·java-zookeeper·java-consul·java-activemq