Forums Test

Full Version: Install and config Redis on Mac OS X via Homebrew
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Install and config Redis on Mac OS X via Homebrew

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

Quote:$ 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.
Launch Redis on computer starts.

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

Start Redis server via “launchctl”.

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

Start Redis server using configuration file.

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

Stop Redis on autostart on computer start.

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

Location of Redis configuration file.


Uninstall Redis and its files.

Quote:$ brew uninstall redis

Quote:$ rm ~/Library/LaunchAgents/homebrew.mxcl.redis.plist

Get Redis package information.

Quote:$ brew info redis

Test if Redis server is running.

Quote:$ redis-cli ping

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