1. redis.conf 配置參数: #是否作为守护进程执行 daemonize yes #如以后台进程执行,则需指定一个pid,默觉得/var/run/redis.pid pidfile redis.pid #绑定主机IP,默认值为127.0.0.1 #bind 127.0.0.1 #Redis默认监听port port 6379 #client闲置多少秒后,断开连接,默觉得300(秒) timeout 300 #日志记录等级,有4个可选值,debug,verbose(默认值),notice