日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

redis创建集群报错can‘t connect to node 192.168.163.203

發布時間:2023/12/3 编程问答 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 redis创建集群报错can‘t connect to node 192.168.163.203 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

【README】

創建集群報錯 can't connect to node 192.168.163.203??

[root@centos201 ~]# /usr/local/redis-cluster/bin/redis-trib.rb create --replicas 0 192.168.163.201:6379 192.168.163.202:6379 192.168.163.203:6379 >>> Creating cluster Connecting to node 192.168.163.201:6379: OK Connecting to node 192.168.163.202:6379: OK Connecting to node 192.168.163.203:6379: [ERR] Sorry, can't connect to node 192.168.163.203:6379

【1】解決方法

切換到 203機器,關閉其防火墻;

systemctl stop firewalld.service? ??

?

【2】再次創建redis集群

--replicas 參數為0 ,表示0個副本,即所有節點全部是 master?

[root@centos201 ~]# /usr/local/redis-cluster/bin/redis-trib.rb create --replicas 0 192.168.163.201:6379 192.168.163.202:6379 192.168.163.203:6379 >>> Creating cluster Connecting to node 192.168.163.201:6379: OK Connecting to node 192.168.163.202:6379: OK Connecting to node 192.168.163.203:6379: OK >>> Performing hash slots allocation on 3 nodes... Using 3 masters: 192.168.163.201:6379 192.168.163.202:6379 192.168.163.203:6379 M: 5571f088f9d8798dd0c2e973ced830c2cd8033a2 192.168.163.201:6379slots:0-5460 (5461 slots) master M: 99a3516a03612dba4b73c32e7e1e03ff1145a660 192.168.163.202:6379slots:5461-10922 (5462 slots) master M: 5c0ea563b464e58dd8dc9722cdfcb97a85c44714 192.168.163.203:6379slots:10923-16383 (5461 slots) master Can I set the above configuration? (type 'yes' to accept): yes >>> Nodes configuration updated >>> Assign a different config epoch to each node >>> Sending CLUSTER MEET messages to join the cluster Waiting for the cluster to join. >>> Performing Cluster Check (using node 192.168.163.201:6379) M: 5571f088f9d8798dd0c2e973ced830c2cd8033a2 192.168.163.201:6379slots:0-5460 (5461 slots) master M: 99a3516a03612dba4b73c32e7e1e03ff1145a660 192.168.163.202:6379slots:5461-10922 (5462 slots) master M: 5c0ea563b464e58dd8dc9722cdfcb97a85c44714 192.168.163.203:6379slots:10923-16383 (5461 slots) master [OK] All nodes agree about slots configuration. >>> Check for open slots... >>> Check slots coverage... [OK] All 16384 slots covered.

bingo !?

創建redis集群成功 !?

?

?

總結

以上是生活随笔為你收集整理的redis创建集群报错can‘t connect to node 192.168.163.203的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。