Redis教程

problems_redis

本文主要是介绍problems_redis,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

目录
  • problems_redis
    • 1 启动哨兵模式报错
    • 2

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

这篇关于problems_redis的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!