在src目录下,我正在运行以下命令。
但是出现以下错误。
然而,如果我使用命令
我又遇到一个错误。
请帮忙。
/redis-trib.rb create --replicas 1 127.0.0.1:7000 127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:7003 127.0.0.1:7004 127.0.0.1:7005
但是出现以下错误。
Creating cluster
[ERR] Sorry, can't connect to node 127.0.0.1:7000
然而,如果我使用命令
redis-server redis.conf
在7000端口启动节点,其中redis.conf的内容如下:port 7000
cluster-enabled yes
cluster-config-file nodes.conf
cluster-node-timeout 10
cluster-slave-validity-factor 0
appendonly yes
同样地,我成功地在所有端口上启动了redis
。
现在当我运行时
/redis-trib.rb create --replicas 1 127.0.0.1:7000 127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:7003 127.0.0.1:7004 127.0.0.1:7005
我又遇到一个错误。
Creating cluster [ERR] Node 127.0.0.1:7000 is not empty. Either the node already knows other nodes (check with CLUSTER NODES) or contains some key in database 0.
请帮忙。