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

相关推荐
20岁30年经验的码农11 小时前
Java Sentinel流量控制与熔断降级框架详解
java·开发语言·sentinel
q***979117 小时前
使用bitnamiredis-sentinel部署Redis 哨兵模式
数据库·redis·sentinel
h***06654 天前
SpringCloud Gateway 集成 Sentinel 详解 及实现动态监听Nacos规则配置实时更新流控规则
spring cloud·gateway·sentinel
7***A4434 天前
后端服务熔断降级:Sentinel配置
sentinel
b***66615 天前
SpringCloud Gateway 集成 Sentinel 详解 及实现动态监听Nacos规则配置实时更新流控规则
spring cloud·gateway·sentinel
ANYOLY5 天前
Sentinel 限流算法详解
算法·sentinel
百***68826 天前
SpringCloud Gateway 集成 Sentinel 详解 及实现动态监听Nacos规则配置实时更新流控规则
spring cloud·gateway·sentinel
E***q5397 天前
后端服务限流实现,Spring Cloud Alibaba Sentinel
java·开发语言·sentinel
凡客丶7 天前
SpringBoot整合Sentinel【详解】
spring boot·后端·sentinel
wzy06237 天前
Redis 哨兵模式中客户端访问服务器的过程详解
redis·sentinel