1.配置sentinel.conf -------------------------------------------------- port 26379 dir "/home/app/soft/redis-2.8.19" daemonize yes logfile "/var/log/redis/sentinel.log" sentinel monitor mymaster 10.0.130.117 6379 1 sentinel down-after-milliseconds mymaster 8000 sentinel failover-timeout mymaster 30000 # Generated by CONFIG REWRITE sentinel config-epoch mymaster 0 sentinel leader-epoch mymaster 11 sentinel current-epoch 11 -------------------------------------------------- 启动26379 监听:nohup ./src/redis-sentinel /usr/local/redis/redis-2.8.24/sentinel.conf --sentinel& 启动6379 端口:nohup ./src/redis-server /usr/local/redis/redis-2.8.24/redis.conf&