redis standard install
1 |
|
1 | [root@localhost app]# tar xzf redis-3.2.6.tar.gz |
1 | [root@localhost redis-3.2.6]# echo 'export REDIS_HOME=/mnt/app/redis'|tee /etc/profile.d/redis.sh |
1 | [root@localhost redis-3.2.6]# mkdir -p /mnt/app/redis/conf |
1 | [root@localhost redis-3.2.6]# su - wisdom |
redis master slave install
1 | [root@localhost app]# tar xzf redis-3.2.8.tar.gz |
1 | [root@localhost redis-3.2.8]# echo 'export REDIS_HOME=/mnt/app/redis' | tee /etc/profile.d/redis.sh |
1 | [root@localhost redis-3.2.8]# mkdir -p /mnt/app/redis/conf/6379 |
1 | redis-master: |
1 | redis-slave: |
redis cluster install
1 | [root@localhost app]# tar xzf redis-3.2.6.tar.gz |
1 | [root@localhost redis-3.2.6]# echo 'export REDIS_HOME=/mnt/app/redis'|tee /etc/profile.d/redis.sh |
1 | [root@localhost redis-3.2.6]# mkdir -p /mnt/app/redis/conf/{7001,7002,7003,7004,7005,7006} |
1 | [root@localhost redis-3.2.6]# vim /mnt/app/redis/conf/7001/redis.conf |
1 | [root@localhost redis-3.2.6]# su - wisdom |
1 | [root@localhost app]# yum -y install ruby rubygem-redis |