#!/bin/bash yum -y install gcc cd /data wget -N http://36.110.160.219:/software/redis/redis-3.2.5.tar.gz tar xzf redis-3.2.5.tar.gz cd redis-3.2.5 make MALLOC=libc make -j make install mkdir /data/db/redis/6380 -p cd /etc/init.d wget -N http://36.110.160.219:/config/redis/redis_6380 chmod 755 redis_6380 chkconfig --add redis_6380 chkconfig redis_6380 on mkdir /etc/redis && cd /etc/redis wget -N http://36.110.160.219:/config/redis/6380.conf mkdir -p /data/logs/redis service redis_6380 start chkconfig --add redis_6380 chkconfig redis_6380 on #/usr/local/bin/redis-cli #/etc/redis/6380.conf #requirepass myRedis -requirepass CIBNauth #SLAVE #slaveof 192.168.1.100 6379 #masterauth redis123 #START-STOP #stop: /usr/local/bin/redis-cli -p 6380 -a CIBNauth shutdown #start:service redis_6380 start