2018-04-22

2018-04-22  本文已影响0人  潜龙勿用之

Redis手动设置集群(3主6从)

rm -rf appendonly.aof
rm -rf dump.rdb
rm -rf nodes_700*

./redis-server ../data/cluster/7000/redis.conf
./redis-server ../data/cluster/7001/redis.conf
./redis-server ../data/cluster/7002/redis.conf

./redis-trib.rb create 10.42.126.175:7000 10.42.126.185:7000 10.42.126.176:7000

./redis-trib.rb add-node --slave --master-id cf2d2a2c1cbaeddc5eace89a4a20259a36f1cd90 10.42.126.185:7001 10.42.126.175:7000
./redis-trib.rb add-node --slave --master-id cf2d2a2c1cbaeddc5eace89a4a20259a36f1cd90 10.42.126.176:7001 10.42.126.175:7000

./redis-trib.rb add-node --slave --master-id 7d593d6180e7833c7260465049a02564428fa767 10.42.126.175:7002 10.42.126.176:7000
./redis-trib.rb add-node --slave --master-id 7d593d6180e7833c7260465049a02564428fa767 10.42.126.185:7002 10.42.126.176:7000

./redis-trib.rb add-node --slave --master-id c675cc76f515a5b7caaeabcdf77adbab9615a536 10.42.126.175:7001 10.42.126.185:7000
./redis-trib.rb add-node --slave --master-id c675cc76f515a5b7caaeabcdf77adbab9615a536 10.42.126.176:7002 10.42.126.185:7000

上一篇下一篇

猜你喜欢

热点阅读