Install and use Redis on MacOS

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

Let’s install Redis.

$ brew install Redis

After installation, you will see a notification about some caveats for configuring. You can safely ignore them for now.

Launch Redis when MacOS boots

$ ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents

Start Redis server via “launchctl”.

$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist

Start Redis server using a configuration file.

$ redis-server /usr/local/etc/redis.conf

Undo Redis auto start on MacOS boot.

$ launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.redis.plist

The location of Redis configuration file.


Uninstall Redis.

$ brew uninstall redis
$ rm ~/Library/LaunchAgents/homebrew.mxcl.redis.plist

Get Redis package information.

$ brew info redis

Test if Redis server is running.

$ redis-cli ping

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

Well, I guess, that’s it!

Have fun Redis-ing ☺


Leave a comment