Redis installation on mac / osx

This documentation focuses on installing and using Redis on mac os.

Installing Redis

Redis can be easily installed by using Homebrew.

 brew install redis 

Launching Redis

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

Check if Redis working properly

 redis-cli ping // Response with pong 

Stop running Redis

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

Running Redis server using a configuration file

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

Uninstall Redis

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