您现在的位置是: 首页 > 运维 sentinel directive while not in sentinel mode 问题解决
sentinel directive while not in sentinel mode 问题解决
2020-05-20 【运维】 3005人已围观 5741次浏览
简介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)
相关文章
- Zookeeper 找不到或无法加载主类 org.apache.zookeeper.server.quorum.QuorumPeerMain
- CentOS 安装Node.js
- 自建Ngrok服务端
- Linux 服务器之间传输大文件(压缩文件、查看MD5、后台传输)
- Debian apt 使用国内镜像
- 使用 OpenSSL 将 pfx 格式证书转为 pem 格式
- 【Docker】unauthorized: incorrect username or password
- 解决Lost connection to MySQL server at 'reading initial communication packet' 的方法
- Linux no space left on device 出现设备上没有空间问题
- CentOS 安装Python3
点击排行
- 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 问题
- Debian apt 使用国内镜像
- 类 BASE64Decoder 程序包 sun.misc 找不到符号
- SpringBoot @NotBlank 不生效问题
- 记一次 Mybatis-Plus 自动填充无效问题解决
- nuxt 项目完整部署方案
- SpringBoot 2.x 文件上传出现 The field file exceeds its maximum permitted size of 1048576 bytes
站长推荐
猜你喜欢
- python scrapy 出现 DEBUG: Filtered offsite request to 错误
- SpringBoot 2.x Security security.basic.enabled=false 失效问题解决
- Python 钉钉加签 HmacSHA256 算法签名
- 解决443端口被VMWare Workstation占用
- 迁移 Docker 目录
- Debian apt 使用国内镜像
- PHP 在执行 composer install 时出现提示 PHP Fatal error: Allowed memory size of XXXXXX bytes exhausted <...>
- 防止Time Machine备份Parallels Desktop的虚拟硬盘文件
- 使用 OpenSSL 将 pfx 格式证书转为 pem 格式
- Debian/Ubuntu无netstat命令解决方案