CODIS Cluster Construction

Source: Internet
Author: User

1. Install go1.3.1 http://www.cnblogs.com/weixiaole/p/4562688.html

2. Installing git yum-y install git

3. Installing the Zookeeper Cluster

A zookeeper is installed on each machine on each of the 3 machines.

Download website

TAR-XZF zookeeper.**.tar.gz-c/usr/local

Cd/usr/local/zookeeper*/conf

CP Zookeeper.cfg Zoo.cfg

VI zoo.cfg (same configuration file for three zookeeper)

In the tail Plus (node before communication)

  server.1=192.168.253.128:2888:3888   server.2=192.168.253.129:2888:3888   server.3=192.168.253.130:2888:3888   echo "1" > /tmp/zookeeper/myid ##生成ID,这里需要注意, myid对应的zoo.cfg的server.ID,比如192.168.253.128机器上的myid文件内容为1(3个机器分别生成123)Start Zookeeper Cd/usr/local/zookeeper/bin./zkserver.sh Start/zkserver.sh Status View node status has Leader,fellower 4. Install Codis Compilation    

   go get -d github.com/wandoulabs/codis

   cd $GOPATH/src/github.com/wandoulabs/codis

   ./bootstrap.sh (这步比较慢 失败了可以重试)

   make gotest

5. Configure node Information

Https://github.com/wandoulabs/codis/blob/master/doc/tutorial_zh.md

Files such as start_redis.sh add_group.sh can also be configured under/data/gopkg/src/github.com/wandoulabs/codis/sample

Reference: http://navyaijm.blog.51cto.com/4647068/1637688

Https://github.com/wandoulabs/codis/blob/master/doc/tutorial_zh.md

 

CODIS Cluster Construction

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.