🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## **初始化集群(redis节点执行)** ``` # 3.2 /usr/local/redis-3.2.13/bin/redis-trib.rb create --replicas 1 192.168.88.61:6379 192.168.88.62:6379 192.168.88.63:6379 192.168.88.64:6379 192.168.88.65:6379 192.168.88.66:6379 # 4.0 /usr/local/redis-4.0.9/bin/redis-trib.rb create --replicas 1 192.168.88.61:6379 192.168.88.62:6379 192.168.88.63:6379 192.168.88.64:6379 192.168.88.65:6379 192.168.88.66:6379 # 5.0 /usr/local/redis-5.0.12/bin/redis-cli --cluster create 192.168.88.61:6379 192.168.88.62:6379 192.168.88.63:6379 192.168.88.64:6379 192.168.88.65:6379 192.168.88.66:6379 --cluster-replicas 1 ``` ## 增加节点 ## 新加入节点建立主从 ## 扩容集群 ``` ``` ## **管理Redis** ``` /usr/local/redis-3.2.13/bin/redis-cli -c -h 192.168.88.61 /usr/local/redis-4.0.9/bin/redis-cli -c -h 192.168.88.61 /usr/local/redis-5.0.12/bin/redis-cli -c -h 192.168.88.61 ```