Redis 安装

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

2. yum install -y tcl

3. make test

4. make

5. make

6. start redis server

7. src/redis-server

8. command line

src/redis-cli shutdown
src/redis-cli
> set foo bar
> get foo

9. cd /usr/local

mkdir -p redis-server/700

10.

cp redis-3.0.0/redis.conf /usr/local/redis-server/redis.default.conf
cp redis-3.0.0/src/redis-server /usr/local/redis-server/7000

11

vim redis-server/7000/redis.conf

#redis-server/7000/redis.conf
include /root/redis-server/redis.default.conf
pidfile /var/run/redis-7000.pid
port 7000
cluster-enabled yes
cluster-config-file redis-node-7000.conf
cluster-node-timeout 5000
appendonly yes


12

cp -R 7000/ 7001/
cp -R 7000/ 7002/
cp -R 7000/ 7003/


13 vi redis-server/redis-start.sh

/usr/local/redis-server/7000/redis-server /usr/local/redis-server/7000/redis.conf &
/usr/local/redis-server/7001/redis-server /usr/local/redis-server/7001/redis.conf &
/usr/local/redis-server/7002/redis-server /usr/local/redis-server/7002/redis.conf &


yum install ruby-devel.x86_64

yum install -y ruby

yum install -y ruby-devel ruby-docs ruby-ri ruby-rdoc

yum install -y rubygems

./redis-trib.rb create 127.0.0.1:7000 127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:7003
11.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值