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