redis note
10.1.64.100
inforeplication
ps-ef|grepredis
./redis-serverredis.conf
./redis-sentinelsentinel.conf&
./redis-clishutdown
实例2
redis>
slaveofnoone
实例1
redis>
slaveof10.1.64.996379
./redis-cli-h10.1.64.98-p6379
./redis-cli-h10.1.64.98-p26379
./redis-cli-h10.1.64.99-p6379
./redis-cli-h10.1.64.99-p26379
./redis-cli-h10.1.64.100-p6379
./redis-cli-h10.1.64.100-p26379
查看全部
info
infoserver
查看哨兵
infosentinel
查看主
sentinelmasters
sentinelmastermymaster
查看副
sentinelslavesmymaster
查看名字mymaster的主服务器IP和port
sentinelget-master-addr-by-namemymaster
强制选举
sentinelfailovermymaster
sentinelget-master-addr-by-namemymaster
登陆操作
-------------------------
./redis-cli
auth"password"
keyvalue操作
-------------------------
查看所有key
keys*