Redis cluster--RPLR Simple pen (redis+postgresql+linux (CENTOS7) +RABBITMQ)

Source: Internet
Author: User
Tags rabbitmq redis cluster redis server

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.