Create a Redis cluster

Source: Internet
Author: User
Tags redis cluster

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

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.