All sentinels down, cannot determine where is mymaster master is running…

该错是创建redis连接池时调用一个方法导致的,如下:

public static String convertHost(String host) {return !host.equals("127.0.0.1") && !host.startsWith("localhost") && !host.equals("0.0.0.0") && !host.startsWith("169.254") && !host.startsWith("::1") && !host.startsWith("0:0:0:0:0:0:0:1") ? host : LOCALHOST_STR;}

原因:

  1. reids的配置文件redis.windows.conf把bind参数配置成了bind 127.0.0.1
  2. 还有sentinel 的配置文件sentinel.conf 中配置成了 sentinel monitor mymaster 127.0.0.1 6380 1

解决:

  1. 去掉bind。或者把ip设置成电脑的ip
  2. sentinel 的配置文件sentinel.conf 对应sentinel monitor mymaster ip 6380 1配置成1中的ip

详细可以参考:参考文章redis哨兵报错原因

windows搭建redis哨兵报错 :启动项目时All sentinels down, cannot determine where is mymaster master is running。相关推荐

  1. redis All sentinels down, cannot determine where is mymaster master is running...

    最近在做springBoot+redis哨兵模式连接时出现问题 2019-03-08 10:44:43.506 INFO 21960 --- [ restartedMain] ConditionEva ...

  2. Redis异常:JedisConnectionException: All sentinels down, cannot determine where is mymaster master is

    1. 异常现象 Caused by: redis.clients.jedis.exceptions.JedisConnectionException: All sentinels down, cann ...

  3. Redis-sentinels启动时报错 All sentinels down, cannot determine where is redis-sentinel master is running.

    报错信息: Caused by: redis.clients.jedis.exceptions.JedisConnectionException: All sentinels down, cannot ...

  4. VS中编译带Qt的他人项目,环境搭建及解决报错

    提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档 VS中编译带Qt的他人项目,环境搭建及解决报错 一.安装VS及Qt及Qt VS Tools 二.报错及解决办法 1.未能找到程序集&q ...

  5. Docker中搭建redis分片集群,搭建redis哨兵结构,实现springboot中对redis分片集群、哨兵结构的访问,Redis缓存雪崩、缓存击穿处理(非关系型数据库技术课程 第十二周)

    文章目录 一.要求: 二.知识总结 缓存雪崩 解决方案 docker中redis分片集群搭建 配置好配置文件 redis-6380.conf redis-6381.conf redis-6382.co ...

  6. docker、docker-compose搭建redis哨兵,集群。

    目录 注意坑: Redisson整合哨兵模式的坑: 1. 安装docker和docker-compose 2. docker-compose搭建redis哨兵模式(一主二从二哨兵) 2.1启动redi ...

  7. 【错误记录】Windows 控制台程序编译报错 ( WINDOWS.H already included. MFC apps must not #include <Windows.h> )

    文章目录 一.报错信息 二.解决方案 一.报错信息 Windows 控制台程序编译报错 : 已启动生成- 1>------ 已启动生成: 项目: hacktool, 配置: Debug Win3 ...

  8. Redis:报错Creating Server TCP listening socket *:6379: bind: No error

    错误: window下启动redis服务报错: Creating Server TCP listening socket *:6379: bind: No error 原因: 端口6379已被绑定,应 ...

  9. 【报错笔记】Eclipse导入Maven项目时pom.xml报错,项目上有红感叹号。

    Eclipse导入Maven项目时pom.xml报错,项目上有红感叹号. 错误原因: pom.xml中依赖的jar包在本地仓库中不存在,但是在maven/conf/settings.xml中定义了阿里 ...

最新文章

  1. win10html5无法播放,win10系统中网页中无法播放视频怎么办
  2. python HTTP后台响应服务
  3. ADS的go to命令
  4. JAVA——操场跑步路径定位模拟解决方案
  5. 哇靠靠,这也行?零基础DIY无人驾驶小车(三)
  6. DevExpress v15.1:CodeRush控件功能增强
  7. 引用和指针自增的不同
  8. Sql Server 2005 获取表结构信息
  9. 高可用MySQL:构建健壮的数据中心
  10. 像素坐标转换实际坐标python_像素坐标转世界坐标的计算
  11. HFSS求解类型和求解设置
  12. 龙族——路明非真实身份猜想
  13. 云原生背景看这一篇就够了
  14. Matlab GUI编程技巧(十八)【实战一】:自定义线条图像绘制
  15. 一次由于SQL Server BUG引起的数据库AlwaysOn主从切换故障分析处理
  16. hdfs写流程和MR缓冲区
  17. 扇贝python课程打卡_坚持打卡1000天,谈谈我对扇贝单词的看法
  18. 【Shader案例】镜面反射
  19. 【每日AI】什么是矢量字库?
  20. 面试项目经理,这12个问题一定会被问到(建议收藏)

热门文章

  1. c语言不显示密码,C语言如何隐藏输入密码
  2. IIC总线 和 SPI总线 的不同
  3. ArcGIS在城乡规划中的应用【3】——现状建筑分析
  4. MediaCodec 完成PCM编码成AAC
  5. jq获取id的名称_jquery中获取id值方法小结
  6. Element 表格嵌套el-popover 多个popover切换时数据动态变化
  7. RabbitMQ集群之federation联合插件的使用
  8. Maven - 发布JAR包到Maven远程中央仓库
  9. 二、预训练模型预测(Datawhale组队学习)
  10. php 正则匹配是否存在字符,php 正则 不包含某字符串的正则表达式