Install and config Redis on Mac OS X via Homebrew

by Pete Houston

By using Homebrew, you greatly reduce the cost of setting up and configuring the development environment on Mac OS X.

Let’s install Redis for the good.

$ brew install redis

After installation, you will see some notification about some caveats on configuring. Just leave it and continue to following some tasks on this article.

$ ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
$ redis-server /usr/local/etc/redis.conf
$ launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
$ brew uninstall redis
$ rm ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
$ brew info redis
$ redis-cli ping

If it replies “PONG”, then it’s good to go!

Well, I guess, that’s it!

Have fun Redis-ing ☺

Code / Design / Love @

Code / Design / Love @