发布于 2015-09-13 15:53:05 | 197 次阅读 | 评论: 0 | 来源: 网络整理
CLUSTER FORGET node-id
从集群中移除带有指定 ID 的节点:
127.0.0.1:7711> CLUSTER NODES de0a573aae684388a0a6efc90c41c7bd571ff981 127.0.0.1:7713 noflags 0 1430839655355 connected 6c56c20d868d76ab199b8d1ea23a99db7ee2a8e2 127.0.0.1:7712 noflags 0 1430839656967 connected 33d40d27b7be502a28c5b97a6d569347a0bc178d 127.0.0.1:7711 myself 0 0 connected 127.0.0.1:7711> CLUSTER FORGET de0a573aae684388a0a6efc90c41c7bd571ff981 OK -- 被移除的是端口号为 7713 的节点 127.0.0.1:7711> CLUSTER NODES 6c56c20d868d76ab199b8d1ea23a99db7ee2a8e2 127.0.0.1:7712 noflags 0 1430839731540 connected 33d40d27b7be502a28c5b97a6d569347a0bc178d 127.0.0.1:7711 myself 0 0 connected