Assuming you have already installed Redis, if you have not yet installed
To run multiple instances.
Create a directory, such as Redis-cluster
Copy the redis-server to this directory.
Create a folder for each instance under the directory
mkdir 7000 7001 7002 7003 7004 7005
Create a profile in each directory
7005 Cluster-enabled Yescluster-config-file nodes.confcluster AppendOnly yesprotected-mode No
Note that Port uses its own
Go into the catalogue and run.
7000 .. /redis-server./redis.conf
Install Ruby
Yum Install Ruby
To install Ruby calling Redis clients, direct execution may not be so. Because the wall
Install Redis
Change the source of Ruby, use the domestic
Gem Sources---add https://https://rubygems.org/
Execute commands to set up the cluster
1 127.0. 0.1:7000127.0. 0.1:7001127.0. 0.1:7002127.0. 0.1:7003127.0. 0.1:7004127.0. 0.1:7005
Create a Redis cluster