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

相关推荐
曾经的三心草11 小时前
springcloud二-Sentinel
spring·spring cloud·sentinel
T_Ghost3 天前
SpringCloud微服务服务容错机制Sentinel熔断器
spring cloud·微服务·sentinel
你是人间五月天4 天前
sentinel实现控制台与nacos数据双向绑定
windows·sentinel
无名客04 天前
sentinel限流常见的几种算法以及优缺点
算法·sentinel·限流
tsxchen4 天前
centos9安装sentinel
sentinel
寒士obj4 天前
Sentinel服务治理:服务降级、熔断与线程隔离
sentinel
iiYcyk4 天前
Hystrix与Sentinel-熔断限流
hystrix·sentinel·springcloud
勇往直前plus4 天前
Sentinel微服务保护
java·spring boot·微服务·sentinel
boy快快长大7 天前
【Spring Cloud Alibaba】Sentinel(一)
sentinel
java干货7 天前
Sentinel和Cluster,到底该怎么选?
sentinel