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.
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.