首页 > 解决方案 > 如何在网络上通过 ip 集群 redis

问题描述

我正在通过本地网络设置 redis 集群,但我不能!

我已经在我的本地127.0.0.1 中尝试过,并且运行良好!但通过网络,例如 192.168.30。不行

redis.conf

端口 7000 启用集群 是 cluster-config-file nodes.conf cluster-node-timeout 5000 appendonly 是 requirepass my_password

标签: redisredis-cluster

解决方案


检查您是否允许端口 7000 上的流量,进一步......

Redis 集群中的节点需要定义端口和高于 10000 的端口。在您的实例中,TCP 端口 7000 和 17000 都需要打开。确保 iptables 或 ufw 配置正确。

如果即使在此之后您仍无法设置您的 redis-cluster,请分享您的输出日志。


推荐阅读