java create redis cluster v5出现dockercompose错误
准备环境
这个码头工人。yml
version: "3"
services:
redis-master1:
image: redis:5.0
container_name: redis-master1
working_dir: /config
ports:
- 6391:6391
- 16391:16391
stdin_open: true
tty: true
network_mode: host
privileged: true
volumes:
- /dvolumn/redis/config:/config
entrypoint:
- /bin/bash
- redis.sh
雷迪斯。嘘
redis-server /config/nodes-6391.conf
-6391。conf:是“https://github.com/antirez/redis/blob/5.0/redis.conf”的副本 关键变化
cluster-enabled yes
port 6391
cluster-node-timeout 15000
cluster-config-file nodes-6391.conf
运行并出错
docker-compose up -d
docker-compose logs redis-master1
# the error infomation below:
Attaching to redis-master1
redis-master1 | # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis-master1 | # Redis version=5.0.9, bits=64, commit=00000000, modified=0, pid=6, just started
redis-master1 | # Configuration loaded
redis-master1 | # Unrecoverable error: corrupted cluster config file.
它显示了一个不可恢复的错误:集群配置文件已损坏 但是,文件“nodes-6391.conf”是“https://github.com/antirez/redis/blob/5.0/redis.conf”的副本 它是如何被腐蚀的
我该怎么修
共 (0) 个答案