在mac 下安装redis
执行brew install redis
==> Downloading http://download.redis.io/releases/redis-2.8.19.tar.gz
######################################################################## 100.0%
==> make install PREFIX=/usr/local/Cellar/redis/2.8. CC=clang
==> Caveats
To have launchd start redis at login:
ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
Then to load redis now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
Or, if you don't want/need launchctl, you can just run:
redis-server /usr/local/etc/redis.conf
==> Summary