problems_redis

目录

problems_redis

1 启动哨兵模式报错

desc: 执行启动命令: redis-server sentinel.conf
errorlog:

*** FATAL CONFIG FILE ERROR ***
Reading the configuration file, at line 69
>>> 'sentinel monitor mymaster node1 6379 2'
sentinel directive while not in sentinel mode

RCA:
启动命令写错了
solution:
添加启动参数 --sentinel
正确的启动命令如下: redis-server sentinel.conf --sentinel
或者直接使用这个命令: redis-sentinel sentinel.conf [推荐]

2

上一篇:微服务之Sentinel


下一篇:Redis主从复制及哨兵模式