记录一个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 小时前
Redis Sentinel哨兵集群
linux·redis·bootstrap·sentinel
2501_938790072 天前
Spring Cloud Alibaba 2023 版:Nacos 服务发现与 Sentinel 限流的整合方案
sentinel·服务发现
青鱼入云2 天前
Sentinel介绍
微服务·sentinel
青鱼入云2 天前
Feign如何集成Sentinel
spring cloud·微服务·sentinel
一周困⁸天.4 天前
Redis Sentinel哨兵集群
redis·bootstrap·sentinel
一条懒鱼6665 天前
Redis Sentinel哨兵集群
数据库·redis·sentinel
2301_797604245 天前
d44:Sentinel 微服务流量控制与 Seata 分布式事务
分布式·微服务·sentinel
新手小白*5 天前
Redis Sentinel哨兵集群
数据库·redis·sentinel
来一杯龙舌兰9 天前
【Sentinel】Springboot整合Sentinel、Socket进行熔断限流(生产级熔断限流)
spring boot·后端·sentinel·熔断限流
kkkkk02110613 天前
微服务学习笔记(黑马商城)
java·spring boot·spring·spring cloud·sentinel·mybatis·java-rabbitmq