redis哨兵 发表于 2020-03-09 更新于 2020-03-10 分类于 redis 阅读次数: 本文字数: 501 阅读时长 ≈ 1 分钟 12345678910111213vim /apps/redis/etc/sentinel.confbind 0.0.0.0port 26379daemonize yespidfile "/apps/redis/redis-sentinel.pid"logfile "/apps/redis/sentinel_26379.log"dir "/apps/redis"sentinel deny-scripts-reconfig yessentinel monitor mymaster 192.168.64.110 6379 2sentinel auth-pass mymaster 123456sentinel down-after-milliseconds mymaster 10000sentinel parallel-syncs mymaster 1sentinel failover-timeout mymaster 180000 三台都一样 启动哨兵: 三台哨兵都要启动 1/apps/redis/bin/redis-sentinel /apps/redis/etc/sentinel.conf