1. First download the good package
#cd/opt/tzr/
#wget http://redis.googlecode.com/files/redis-2.6.11.tar.gz
#mkdir/opt/tzr/redis
2.Redis installation (requires both master and slave installation)
#tar-ZXVF redis-2.6.11.tar.gz
#mv Redis-2.6.11/opt/tzr/redis
#cd/opt/tzr/redis/redis-2.6.11/
#make
3.redis Configuration
#vi Opt/tzr/redis/redis-2.6.11/redis.con
Modify the following content:
Daemonize No no change to Yes
Port 6379 in 6379 to 12002
Dir./medium./change to/data/redis_12002 or/www/redis_12002/
4.redis start-Up and shutdown
/opt/tzr/redis-2.8.24/src/redis-server
Shutdown is off
Test of the 5.redis command
Log in to the shell client first
/opt/tzr/redis/redis-2.6.11/src/redis-cli-n 12002
6.Redis Master-Slave configuration
Locate the configuration file first/opt/tzr/redis/redis-2.6.11/redis.conf
Modify the following content:
Slaveof 192.168.1.121 12002
http://my.oschina.net/pwd/blog/381212
Building a Redis Cluster