//1.安装 brew install redis //2.修改配置 改为守护进程模式启动 修改/usr/local/etc/redis.conf,把daemonize no修改成daemonize yes //3.启动 redis-server /usr/local/etc/redis.conf