1. 将下列代码保存为文件redis, 置于 /etc/init.d 下面 ########################### # chkconfig: 2345 90 10 redis服务必须在运行级2,3,4,5下被启动或关闭,启动的优先级是90,关闭的优先级是10 # description: Redis is a persistent key-value database PATH=/usr/local/bin REDISPORT=6379 EXEC=/usr/local/bin/r…