Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 909 Bytes

三主三从搭建.md

File metadata and controls

24 lines (14 loc) · 909 Bytes

bind 127.0.0.1                              ->            bind 0.0.0.0
port 6379                                   ->            port 7001
# cluster-enabled yes                       ->            cluster-enabled yes
daemonize no                                ->            daemonize yes
pidfile /var/run/redis_6379.pid             ->            pidfile /opt/redis/redis-5.0.12/7001/redis_7001.pid
logfile ""                                  ->            logfile "/opt/redis/redis-5.0.12/7001/7001.log"
dbfilename dump.rdb                         ->            dbfilename dump_7001.rdb
notify-keyspace-events ""                   ->            notify-keyspace-events Egx
masterauth "9zdata527"
requirepass "9zdata527"

./redis-cli --cluster create 192.168.1.146:7001 192.168.1.146:7002 192.168.1.146:7003 192.168.1.146:7004 192.168.1.146:7005 192.168.1.146:7006 --cluster-replicas 1