1.下载redis
2.安装redis
make
make test
make install PREFIX=/usr/local/redis
cp redis.conf /usr/local/redis/bin/redis.conf
chmod /usr/local/redis/bin/redis.conf
3.install ruby
4.新建redis_cluster目录
5.copy redis.conf 到 redis_cluster目录为 redis-7000.conf redis-7001.conf redis-7002.conf
6.修改配置文件
7.解压目录src下,复制redis_trib.rb 到 /usr/local/bin/redis_trib.rb
8.redis-trib.rb create --replicas 1 127.0.0.1:7000 127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:7003 127.0.0.1:7004 127.0.0.1:7005