分类: 其他平台
2014-04-10 18:15:02
1,下载redis源代码
wget
2,解压
tar -zxvf redis-2.8.6.tar.gz
3,安装
cd redis-2.8.6 && make && make install
4,配置conf
mkdir -p /usr/local/redis-sentinel/bin
mkdir -p /usr/local/redis-sentinel/conf
cp sentinel.conf/usr/local/redis-sentinel/conf
cp . /src/redis-benchmark /usr/local/redis-sentinel/bin
cp . /src/redis-check-aof /usr/local/redis-sentinel/bin
cp . /src/redis-check-dump /usr/local/redis-sentinel/bin
cp . /src/redis-cli /usr/local/redis-sentinel/bin
cp . /src/redis-sentinel /usr/local/redis-sentinel/bin
cp . /src/redis-server /usr/local/redis-sentinel/bin
5,启动主从redis-sentinel服务器。
/usr/local/redis-sentinel/bin/redis-sentinel /usr/local/redis-sentinel/conf/sentinel.conf &