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

相关推荐
亭台烟雨中18 小时前
基于注解的Sentinel限流熔断
sentinel
设计师小聂!18 小时前
spring cloud alibaba Sentinel详解
java·spring cloud·sentinel
咖啡啡不加糖18 小时前
Sentinel原理与SpringBoot整合实战
spring boot·后端·sentinel
神码小Z18 小时前
SpringCloud实战:使用Sentinel构建可靠的微服务熔断机制
spring cloud·sentinel
曼岛_2 天前
[Java实战] Docker 快速启动 Sentinel 控制台(二十八)
java·docker·sentinel
暖苏3 天前
SpringCloud Alibaba微服务-- Sentinel的使用(笔记)
java·spring boot·spring cloud·微服务·sentinel·微服务保护·服务熔断
陆小叁3 天前
若依项目集成sentinel、seata和shardingSphere
sentinel·seata·shardingsphere
曼岛_5 天前
[Java实战]Spring Boot整合Sentinel:流量控制与熔断降级实战(二十九)
java·spring boot·sentinel
快乐肚皮6 天前
基于Spring Cloud Sentinel自研Slot扩展实战
java·spring cloud·sentinel
快乐肚皮6 天前
Spring Cloud Sentinel 快速入门与生产实践指南
spring·spring cloud·sentinel