Skip to content

Instantly share code, notes, and snippets.

@geraldyeo
Created July 21, 2016 06:21
Show Gist options
  • Save geraldyeo/e33e184b13e45c1aec1d2d1534930dad to your computer and use it in GitHub Desktop.
Save geraldyeo/e33e184b13e45c1aec1d2d1534930dad to your computer and use it in GitHub Desktop.
Install and config Redis on Mac OS X via Homebrew
# 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
# Start Redis server using configuration file.
redis-server /usr/local/etc/redis.conf
# Stop Redis on autostart on computer start.
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
# Location of Redis configuration file.
/usr/local/etc/redis.conf
# Uninstall Redis and its files.
brew uninstall redis
rm ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
# Get Redis package information.
brew info redis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment