Redis操作
# 登录
redis-cli -h 127.0.0.1 -p 6379
auth password
1. 查看Redis客户端配置的最大连接数
config get maxclients
2. 查看Redis客户端当前连接数
# connected_clients为当前连接数
info clients
3. 删除全部客户端连接
client kill type normal
4. 查看Redis连接超时时间
config get timeout
5. 设置Redis客户端最大连接数
config set maxclients 10100
6. 设置Redis连接超时时间
config set timeout 600