您现在的位置是: 首页 > 运维 sentinel directive while not in sentinel mode 问题解决
sentinel directive while not in sentinel mode 问题解决
2020-05-20 【运维】 2391人已围观 4228次浏览
简介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)
相关文章
- linux下各文件夹的结构说明及用途介绍
- Debian/Ubuntu无netstat命令解决方案
- Linux 服务器之间传输大文件(压缩文件、查看MD5、后台传输)
- CentOS 安装Python3
- nginx 出现 the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in 错误解决方案
- 解决Lost connection to MySQL server at 'reading initial communication packet' 的方法
- Docker 批量操作命令
- Windows CMD 常用命令
- Debian apt 使用国内镜像
- LNMP 手动更新 SSL 证书
点击排行
- Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR DISABLE You can't write or read against a disable instance
- RocketMQ 出现 sendDefaultImpl call timeout 问题
- 类 BASE64Decoder 程序包 sun.misc 找不到符号
- Debian apt 使用国内镜像
- SpringBoot @NotBlank 不生效问题
- 记一次 Mybatis-Plus 自动填充无效问题解决
- nuxt 项目完整部署方案
- gulp3 在 node12 上运行出现异常 primordials is not defined
站长推荐
猜你喜欢
- idea去掉Smart commands execution提示
- ElasticSearch安装踩坑指南
- SpringBoot 启动测试时出现提示 Test class should have exactly one public zero-argument constructor
- Win10 安装适用于Linux的Windows子系统
- Redis 提示 MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk 解决方案
- SpringBoot 定时任务 多线程
- 获取阿里云CDN真实IP
- npm 出现 Unexpected token < in JSON at position 21330
- Vue 报错 Avoid using non-primitive value as key, use string/number value instead
- 使用 OpenSSL 将 pfx 格式证书转为 pem 格式