查询
列出连接Redis的客户端
client list
获取配置
CONFIG GET '*'
## 加入从节点
redis-cli -h 127.0.0.1 -p 6379 slaveof 192.168.0.1 6379
## 设置优先级
redis-cli -h 127.0.0.1 -p 6379 config set slave-priority 10
## 关闭实例
redis-cli -h 192.168.71.14 -p 6611 shutdown
清除匹配CLOUD的key
redis-cli -h 10.0.21.59 -p 6379 --eval redis.call("del", unpack(redis.call("KEYS", "CLOUD*")));
将危险的命令换成其他
rename-command FLUSHALL aoYAPNXRPmcarcR4ZDgC81TbdkSmLA222rcR
rename-command FLUSHDB df69aZbLAX3cf3ednHM3SOlbpH71yEXL3333
rename-command KEYS dIiGXix4A2DreBBsQwY6YHkidcDjo4444BsQ