The CENTOS7 is used.
1, download the latest Redis source code, decompression (2016-05-12 the latest version for 3.2.0,3.0 and above the official cluster)
2, Enter the source root directory (redis-stable directory under this directory), find utils/create-cluster/under the Create-cluster file, this file is the Redis Cluster Management example file, need to be modified, So copy to your designated directory for modification (copy this to this file directory)
3. Modify the Create-cluster file:
A. In the file: /.. /src/redis-server all modified to [root directory]/src/redis-server, available relative, also available absolute path. Change here to Redis-stable/src/redis-server
B. In the "Start" section, start Redis-server has a number of parameters (e.g.--cluster-enabled Yes--cluster-config-file nodes-${port}.conf), at the end of this line add "-- Protected-mode no "to turn on other computers accessible. This other computer access problems I have been engaged for a long while to get out, online search not the solution
4, use REDIS-CLI test: redis-cli-c-H [hosts]-p [port]. Because the Windows version of Redisdesktopmanager does not support clustering (I do not know if I did not find the Setup method), I directly on the Redis server test, input redis-cli-c-p 8899 can be tested. Must add-c this parameter, otherwise will be reported [error]moved xxxxx error, this is not specified cluster mode, resulting in redirection. You must add-C to specify the use cluster mode.
5, if the installation of Redis does not add Redis to the system path, you need to use a relative or absolute path reference redis-cli, such as here can use Redis-stable/src/redis-cli xxx.
6, Other parameters need to be modified, you can refer to the 3rd in the B point, add parameters on the line. The parameter format is "--[param name" [param value] ", the parameter name can be found in redis.conf, or Baidu.
Note: Need to install Ruby and related environment (recommended first read the Redis official cluster document, Chinese version, English version)
REDIS-TRIB.RB also know how to use
Redis cluster--RPLR Simple pen (redis+postgresql+linux (CENTOS7) +RABBITMQ)