在Mac上安装Redis
使用自制软件进行安装。
brew install redis
==> Downloading http://redis.googlecode.com/files/redis-2.6.10.tar.gz
######################################################################## 100.0%
==> make -C /private/tmp/redis-e09G/redis-2.6.10/src CC=cc
==> 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
/usr/local/Cellar/redis/2.6.10: 9 files, 748K, built in 9 seconds
启动
redis-server /usr/local/etc/redis.conf
连接
redis-cli
确认
redis 127.0.0.1:6379> set key val
OK
redis 127.0.0.1:6379> get key
"val"
GUI客户端
* http://redisdesktop.com/
* https://github.com/joeferner/redis-commander