Building a Redis Cluster

Source: Internet
Author: User
Tags redis cluster

1. First download the good package

#cd/opt/tzr/

#wget http://redis.googlecode.com/files/redis-2.6.11.tar.gz

#mkdir/opt/tzr/redis

2.Redis installation (requires both master and slave installation)

#tar-ZXVF redis-2.6.11.tar.gz

#mv Redis-2.6.11/opt/tzr/redis

#cd/opt/tzr/redis/redis-2.6.11/

#make

3.redis Configuration

#vi Opt/tzr/redis/redis-2.6.11/redis.con

Modify the following content:

Daemonize No no change to Yes

Port 6379 in 6379 to 12002

Dir./medium./change to/data/redis_12002 or/www/redis_12002/

4.redis start-Up and shutdown

/opt/tzr/redis-2.8.24/src/redis-server

Shutdown is off

Test of the 5.redis command

Log in to the shell client first

/opt/tzr/redis/redis-2.6.11/src/redis-cli-n 12002

6.Redis Master-Slave configuration

Locate the configuration file first/opt/tzr/redis/redis-2.6.11/redis.conf

Modify the following content:

Slaveof 192.168.1.121 12002

http://my.oschina.net/pwd/blog/381212

Building 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.