./redis-cli -a wtl1992 --cluster add-node 新节点IP地址:端口 存在节点IP:端口 --cluster-slave --cluster-master-id (master节点的ID) 1. ./redis-cli -a wtl1992 --cluster add-node 192.168.233.208:6379 192.168.233.207:6379 --cluster-slave --cluster-master-id 68df4ed4c8798625124bc13ce9671d...
/redis所在目录/src/redis-trib.rb add-node --slave --master-id 主节点的id(用redis-cli,使用cluster node查看) 新节点ip:端口号 集群中任意节点ip:端口号 [root@mysql-db01 ~]# /data/redis-3.2.8/src/redis-trib.rb add-node10.0.0.70:638310.0.0.51:6380>>> Adding node10.0.0.70:6383to cluster...
redis-cli --cluster add-node 新节点IP地址:端口 存在节点IP:端口 --cluster-slave (从节点) --cluster-master-id (master节点的ID) 实例: redis-cli -p 6379 -a *** --cluster add-node 172.19.11.75:6379 172.19.11.74:6379 --cluster-slave --cluster-master-id c8e6a5fa54b4ab3ddd30184c8983eb...
[root@bj02-ops-mgotest01 local]# /opt/redis-3.2.5/src/redis-trib.rb add-node 10.125.141.137:9006 10.125.141.137:9003 >>> Adding node 10.125.141.137:9006 to cluster 10.125.141.137:9003 >>> Performing Cluster Check (using node 10.125.141.137:9003) S: bec729e8b454b190db07997661f003b869391...
# ./redis-trib.rb add-node 192.168.8.150:7006 192.168.8.150:7000 执行之后,成功提示: >>> Adding node192.168.8.150:7006 to cluster 192.168.8.150:7000 >>> Performing ClusterCheck (using node 192.168.8.150:7000) S: b15e99ebcbcffc1f221412716ee33b03c45a3e3b192.168.8.150:7000 ...
1)、登陆集群任意节点:执行:CLUSTER FORGET <node_id> 2)、redis-trib.rb del-node <ip> <port> <node_id> 例如 redis-trib.rb del-node 10.80.82.74:7030 923e869b3fda8add429fb200ea00ce94bdbc84e6 CLUSTER FORGET 923e869b3fda8add429fb200ea00ce94bdbc84e6 ...
先启动一个node7007的节点,然后把它添加到集群中 [root@iZuf6cnolb3cm2fqsbhceqZ redis-cluster]# redis-cli --cluster add-node 127.0.0.1:7007 127.0.0.1:7001 >>> Adding node 127.0.0.1:7007 to cluster 127.0.0.1:7001 >>> Performing Cluster Check (using node 127.0.0.1:7001) ...
## redis-cli --cluster add-node ${要添加的节点信息} ${集群中任意地址} redis-cli --cluster add-node 127.0.0.1:6380 127.0.0.1:6379 输出如下信息: >>> Adding node 127.0.0.1:6380 to cluster 127.0.0.1:6379 >>> Performing Cluster Check (using node 127.0.0.1:6379) M: e2f3aee5a4e69da42...
通过如下命令增加节点redis-cli --cluster add-node 127.0.0.1:7006 127.0.0.1:7001增加的节点是从节点而不是主节点