1、安装redis
$ brew install redis
$ redis-server
3、添加至开机启动项(可选)
$ ln -f /usr/local/Cellar/redis/2.8.13/homebrew.mxcl.redis.plist ~/Library/LaunchAgents/
$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
原文:https://www.cnblogs.com/ihuangjianxin/p/9390650.html