參照博客,redis集羣
https://www.cnblogs.com/wuxl360/p/5920330.html
https://www.cnblogs.com/yuanermen/p/5717885.html
安裝ruby rpm 報錯,參考博客
https://blog.csdn.net/mydo/article/details/47748211
神奇的是我安裝完了ruby之後還是無法執行
redis-trib.rb
就算在src/目錄下 仍然需要執行 ./ 神奇 綁定redis IP失敗 全部是默認的 127.0.0.1
但是綁定了 之後 由於另外一臺是docker 少一些環境沒有安裝 於是打算只安轉三個節點
於是一直報下面的錯誤
./redis-trib.rb create --replicas 1 192.168.16.219:7002
>>> Creating cluster
*** ERROR: Invalid configuration for cluster creation.
*** Redis Cluster requires at least 3 master nodes.
*** This is not possible with 1 nodes and 1 replicas per node.
*** At least 6 nodes are required.
查詢相關博客才知道,搭建集羣至少需要3主3從6臺服務器或進程
菜鳥現在才知道!!!!!!或許是英文太菜沒有看懂英文報錯
還有查詢相關博客,說redis bind ip地址的問題 求普及一波,不是很熟!因爲我啓動是不成功的
root 8098 1 0 16:59 ? 00:00:04 redis-server 127.0.0.1:7000 [cluster]
root 8111 1 0 16:59 ? 00:00:04 redis-server 127.0.0.1:7001 [cluster]
root 14937 7941 0 17:57 pts/1 00:00:00 redis-server 192.168.16.219:7002 [cluster]
變成這樣,我也很奇怪啊!!!!