Redis Cluster Build Notes

Source: Internet
Author: User
Tags redis cluster install redis

System for CentOS7, create 9001-9006 6 folders, copy redis-server redis.conf files to 6 new folders

The redis.conf file is configured as follows:

Port 9001

Daemonize Yes

cluster-enabled Yes

Cluster-config-file nodes.conf

Cluster-node-timeout 3000

Cluster-require-full-coverage No

AppendOnly Yes

Enter the 900X folder, respectively, to run the ./redis-server./redis.conf Start Redsi Service

Yum Install Ruby

ruby-v View version

Yum Install RubyGems

gem-v View version

Gem Install Redis

Or

wget Https://rubygems.org/downloads/redis-3.2.2.gem

Gem Install-l./redis-3.2.1.gem

(Here I first download the Redis-3.2.1.gem file on the other machine, then put it on my site and download it to the CentOS system.)

Create a cluster (3 Master 3 from)

./redis-trib.rb Create--replicas 1 192.168.137.83:9001 192.168.137.83:9002 192.168.137.83:9003 192.168.137.83:9004 192.168.137.83:9005 192.168.137.83:9006

Cluster build successfully, run redis-cli-c-P 9001 View

Redis Cluster Build Notes

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.