redis - 如何在网络上通过 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
解决方案
检查您是否允许端口 7000 上的流量,进一步......
Redis 集群中的节点需要定义端口和高于 10000 的端口。在您的实例中,TCP 端口 7000 和 17000 都需要打开。确保 iptables 或 ufw 配置正确。
如果即使在此之后您仍无法设置您的 redis-cluster,请分享您的输出日志。
推荐阅读
- css - Django - 管理区域宽度
- bash - Bash/Awk 比较两个文件,在坐标之间打印值,否则打印 0
- android - 如何在背景图像上添加多个图像
- google-apps-script - 如何在谷歌表格中的类似日期条目之后自动添加一个空白行?
- unity3d - Unity弹跳球奇迹般地长高了
- python - 通过给定范围的属性查询弹性搜索索引?
- javascript - 单击图像时如何将文本复制到剪贴板?
- javascript - 在 URL 更改时移除注入的 iframe | Chrome 扩展程序
- idris - 在签名中找不到具有约束的实现
- python - 在 graphql 查询中包含参考字段