Skip to content

redis常用命令

一、使用命令

参考:http://doc.redisfans.com/

二、运维命令

2.1 连接数

#查看连接数
CONFIG GET maxclients
#查看当前的连接数
info clients
#设置连接数
CONFIG SET maxclients 1000

2.2 集群状态

#查看当前集群的状态
cluster info
#查看当前集群的各个节点
cluster nodes