Install and run Redis on Mac
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 with next tasks.
Launch Redis on computer starts.
$ ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
Start Redis server via “launchctl”.
$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
Uninstall Redis and its files.
$ 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 you are good to go 👍
That’s it, have fun with Redis.