修改redis.conf
slaveof 192.168.25.133 6379
从库监听主库操作命令
replconf listening-port 6379
sync
Sentinel 哨兵
sentinel.conf配置文件,修改
sentinel monitor mymaster 192.168.25.133 6379 1
启动哨兵
./redis-sentinel ../sentinel.conf
修改redis.conf
slaveof 192.168.25.133 6379
从库监听主库操作命令
replconf listening-port 6379
sync
sentinel.conf配置文件,修改
sentinel monitor mymaster 192.168.25.133 6379 1
启动哨兵
./redis-sentinel ../sentinel.conf