您现在的位置是: 首页 > 运维 sentinel directive while not in sentinel mode 问题解决
sentinel directive while not in sentinel mode 问题解决
2020-05-20 【运维】 4878人已围观 9452次浏览
简介sentinel directive while not in sentinel mode 问题解决
部署 Redis 哨兵时,出现了下面的提示
*** FATAL CONFIG FILE ERROR (Redis 6.0.1) ***
Reading the configuration file, at line 84
>>> 'sentinel monitor mymaster 192.168.202.1 6379 2'
sentinel directive while not in sentinel mode
查看文档发现是启动哨兵时的命令不对。下面是两种解决方案
第一种(推荐)
直接使用 redis-sentinel 启动
./redis-sentinel.sh sentinel.conf
第二种
给 redis-server 增加 --sentinel 参数启动
./redis-server.sh sentinel.conf --sentinel
很赞哦! (0)
相关文章
- CentOS 安装JDK
- CentOS 安装 Docker
- Debian apt 使用国内镜像
- Zookeeper 找不到或无法加载主类 org.apache.zookeeper.server.quorum.QuorumPeerMain
- Redis 提示 MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk 解决方案
- Debian/Ubuntu无netstat命令解决方案
- linux下各文件夹的结构说明及用途介绍
- CentOS 安装Python3
- Linux 安装 Tengine
- Linux 查看磁盘、磁盘分区、挂载磁盘、卸载磁盘操作
点击排行
- Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR DISABLE You can't write or read against a disable instance
- Debian apt 使用国内镜像
- RocketMQ 出现 sendDefaultImpl call timeout 问题
- 类 BASE64Decoder 程序包 sun.misc 找不到符号
- SpringBoot @NotBlank 不生效问题
- 记一次 Mybatis-Plus 自动填充无效问题解决
- SpringBoot 2.x 文件上传出现 The field file exceeds its maximum permitted size of 1048576 bytes
- nuxt 项目完整部署方案
站长推荐
猜你喜欢
- CentOS 7 安装 Golang 环境
- 在使用Flutter进行网络请求时,使用Dio访问https地址出现unable to get local issuer certificate错误
- Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR DISABLE You can't write or read against a disable instance
- LNMP 手动更新 SSL 证书
- springboot引入mybatis-plus后出现ClassNotFoundException: org.mybatis.logging.LoggerFactory
- win10 cmd下运行python命令弹出windows应用商店问题
- nuxt 项目完整部署方案
- mac idea spring boot 启动慢
- win10 cmder Debian 安装配置 oh-my-zsh
- PHP 中list()出现Undefined offset: 0错误