多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## **初始化集群(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 ```