Building a Redis Cluster summary

Source: Internet
Author: User
Tags redis cluster install redis

1. In the configuration file, modify the place:

Daemonize Yes
Port 9001
cluster-enabled Yes
Cluster-config-file nodes.conf
Cluster-node-timeout 5000
AppendOnly Yes

2. Start a redis with three nodes, respectively

3. Executed under the Redis src

./REDIS-TRIB.RB Create--replicas 0 192.168.1.150:6379 192.168.1.151:6379 192.168.1.152:6379

If an error occurs, perform some Ruby installation

Yum Install Rubyyum install Rubygemsgem install Redis

When you're done, you can test the cluster for success

Redis-cli-c-H 192.168.1.150-p 6379

Where-C must be added, otherwise error (error) MOVED xxx

Building a Redis Cluster summary

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.