#######因为install_server.sh这个安装脚本有bug#####################################
vim install_server.sh
##第一个点###修改前-if[!`which chkconfig`];then###修改后+if[!`which chkconfig`];then#combine the header and the template (which is actually a static footer)
echo $REDIS_INIT_HEADER > $TMP_FILE && cat $INIT_TPL_FILE >> $TMP_FILE || die "Could not write init script to $TMP_FILE"else##第二个点###修改前-if[!`which chkconfig`];then###修改后+if[!`which chkconfig`];then#if we're not a chkconfig box assume we're able to use update-rc.d
update-rc.d redis_$REDIS_PORT defaults && echo "Success!"else###修改完成后,再次执行,应该没问题的了