标签:cli redis serve ilo moni failover 安装redis 机器 oca
先三台机器安装redis,从安装包下复制sentinel.conf文件到/usr/local/redis/bin/
192.168.56.10(主) 192.168.56.11(从) 192.168.56.12(从)
redis.conf修改
bind 0.0.0.0
protected-mode no
daemonize yes
redis.conf修改
slaveof 192.168.56.10 9400
protected-mode no
daemonize yes
bind 0.0.0.0
daemonize yes
port 26379
protected-mode no
dir "/usr/local/redis/sentinel-tmp"
logfile "/usr/local/redis/sentinel.log"
sentinel monitor redis-master 192.168.56.10 6379 2
sentinel down-after-milliseconds redis-master 30000
sentinel failover-timeout redis-master 180000
sentinel parallel-syncs redis-master 1
进入
user/local
./redis-sentinel sentinel.conf
./redis-server redis.conf
./redis-cli #或者以下
./redis-cli -p 9400 #指定端口时
127.0.0.1:6379> info replication
标签:cli redis serve ilo moni failover 安装redis 机器 oca
原文地址:https://www.cnblogs.com/fuyublog/p/13704063.html