3 月 012014
 

1:安装

安装redis

mkdir /root/install

cd /root/install

#wget 180.166.126.162:10086/install/redis-2.6.13.tar.gz

wget http://download.redis.io/releases/redis-2.8.4.tar.gz

tar -zxvf redis-2.8.4.tar.gz

cd redis-2.8.4

yum -y  install make gcc

make MALLOC=libc

cd src/

cp -rf redis-benchmark  redis-check-aof  redis-check-dump  redis-cli  redis-server  redis-sentinel  /usr/local/bin

echo "vm.overcommit_memory = 1" >>  /etc/sysctl.conf
sysctl -p
sysctl vm.overcommit_memory=1
mkdir -p  /root/shell/
cd /usr/local/

redis-sentinel /etc/sentinel.conf

2:安装keepalived

cd /root/install

yum -y install openssl-devel

wget http://www.keepalived.org/software/keepalived-1.2.9.tar.gz

tar -zxvf keepalived-1.2.9.tar.gz

cd keepalived-1.2.9

./configure –prefix=/usr/local/keepalive

make && make install

/usr/local/keepalive/sbin/keepalived -f /usr/local/keepalive/etc/keepalived/keepalived.conf -d

3:安装nutcracker

cd /root/install

wget http://twemproxy.googlecode.com/files/nutcracker-0.3.0.tar.gz

tar -zxvf nutcracker-0.3.0.tar.gz

cd nutcracker-0.3.0

./configure –prefix=/usr/local/nutcracker –enable-debug=log

make && make install

mkdir -p  /usr/local/nutcracker/etc/

cd /usr/local/nutcracker/etc/

wget  180.166.126.162:10086/nutcracker/nutcracker.yml

mkdir -p  /usr/local/nutcracker/logs

/usr/local/nutcracker/sbin/nutcracker -c /usr/local/nutcracker/etc/nutcracker.yml -d -o  /usr/local/nutcracker/logs/nutcracker.log

 Posted by at 下午 11:41

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny