redis-cli连接服务器

# 无密码
./redis-cli

# 有密码登录
./redis-cli -a ${pas}

# 切换数据库 默认是0,不用切换
select $database

查看连接数

info clients

允许最大连接数

config get maxclients

具体客户端连接

client list

更多推荐

redis查看连接数