TUTORIAL数据库与缓存FETCHED
Redis Cluster Slots 命令
Redis Cluster Slots 命令 Redis 服务器 Redis Client Slots 命令用于当前的集群状态,以数组形式展示。 语法 redis Client Slots 命令基本语法如下: redis 127.0.0.1:6379> CLUSTER SLOTS 可用版本 >= 3.0.0 返回值 IP/端口嵌套的列表数组。 实例 redis 127.0.0.1:6379..
更新于 2026/7/16
教程详情页默认 noindex。
Redis Cluster Slots 命令
Redis Client Slots 命令用于当前的集群状态,以数组形式展示。
语法
redis Client Slots 命令基本语法如下:
redis 127.0.0.1:6379> CLUSTER SLOTS
可用版本
>= 3.0.0
返回值
IP/端口嵌套的列表数组。
实例
redis 127.0.0.1:6379> cluster slots
1) 1) (integer) 0
2) (integer) 4095
3) 1) "127.0.0.1"
2) (integer) 7000
4) 1) "127.0.0.1"
2) (integer) 7004
2) 1) (integer) 12288
2) (integer) 16383
3) 1) "127.0.0.1"
2) (integer) 7003
4) 1) "127.0.0.1"
2) (integer) 7007
3) 1) (integer) 4096
2) (integer) 8191
3) 1) "127.0.0.1"
2) (integer) 7001
4) 1) "127.0.0.1"
2) (integer) 7005
4) 1) (integer) 8192
2) (integer) 12287
3) 1) "127.0.0.1"
2) (integer) 7002
4) 1) "127.0.0.1"
2) (integer) 7006