main redis installation
Install redis under linux start, stop, connect edit delete
http://happyqing.iteye.com/blog/2348255
configure from redis
cp /opt/redis/conf/redis.conf /opt/redis/conf/redis6380.conf
Make the following adjustments to the configuration file
#Set the port number
#port 6379
port 6380
#Set the pid file path
#pidfile /var/run/redis_6379.pid
pidfile /opt/redis/redis_6380.pid
#Set the database file path
#dbfilename dump.rdb
dbfilename dump6380.rdb
#Set slave (write LAN IP)
# slaveof <masterip> <masterport>
slaveof 192.168.2.11 6379
#set master password
# masterauth <master-password>
masterauth redis326
#Set the log file path
#logfile ""
logfile /opt/redis/logs/redis6380.log
start up
/opt/redis/bin/redis-server /opt/redis/conf/redis6380.conf
Client connection
/opt/redis/bin/redis-cli -h 192.168.2.11 -p 6380 -a redis326
stop
/opt/redis/bin/redis-cli -h 192.168.2.11 -p 6380 -a redis326 shutdown