vim /etc/init.d/redisc
将下方脚本写入redisc文件中
#!/bin/sh
# chkconfig: 2345 80 90
#
# Simple Redis init.d script conceived to work on Linux systems
# as it does use of the /proc filesystem.
REDISPORT1=7001
REDISPORT2=7002
REDISPORT3=7003
REDISPORT4=7004
REDISPORT5=7005
REDISPORT6=7006
HOSTIP=192.168.70.156
EXEC=/usr/local/redis/bin/redis-server
CLIEXEC=/usr/local/redis/bin/redis-cli
PIDFILE=/usr/local/redis-cluster/${REDISPORT1}/redis_${REDISPORT1}.pid
CONF1="/usr/local/redis-cluster/${REDISPORT1}/${REDISPORT1}.conf"
CONF2="/usr/local/redis-cluster/${REDISPORT2}/${REDISPORT2}.conf"
CONF3="/usr/local/redis-cluster/${REDISPORT3}/${REDISPORT3}.conf"
CONF4="/usr/local/redis-cluster/${REDISPORT4}/${REDISPORT4}.conf"
CONF5="/usr/local/redis-cluster/${REDISPORT5}/${REDISPORT5}.conf"
CONF6="/usr/local/redis-cluster/${REDI