Skip to content

Instantly share code, notes, and snippets.

@shandou
Forked from tomysmile/mac-setup-redis.md
Last active August 23, 2019 22:42
Show Gist options
  • Save shandou/3eeeeb1a35616802ed4778bbbd30e9dc to your computer and use it in GitHub Desktop.
Save shandou/3eeeeb1a35616802ed4778bbbd30e9dc to your computer and use it in GitHub Desktop.
Brew install Redis on Mac

type below:

brew update
brew install redis

To have launchd start redis now and restart at login:

brew services start redis

Or, if you don't want/need a background service you can just run:

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

Test if Redis server is running.

redis-cli ping

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

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
redis-server /usr/local/etc/redis.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment