1, prepare 3*2 or 5*2 machines, one machine can hold multi redis node: master + slave. 2, vi redis.sh, [ 1 .. 2 ] => 6381-6382, you can change redis port here. 3, cp redis-cluster to every machine, and run: sh redis.sh 4, vi /etc/syscontip/iptables, open port 6381-6382 to other machines in the cluster 5, vi cluster.sh, change cluster_ips and [ 1 .. 2 ], and run: sh cluster.sh, input yes 6, sh client.sh, cluster nodes, cluster info, set key1 value1, cluster leave 7, sh passwd.sh, or set password on every redis node: config set masterauth pwd, config set requirepass pwd