Skip to content

Instantly share code, notes, and snippets.

@tomysmile
Last active October 31, 2024 21:46
Show Gist options
  • Save tomysmile/1b8a321e7c58499ef9f9441b2faa0aa8 to your computer and use it in GitHub Desktop.
Save tomysmile/1b8a321e7c58499ef9f9441b2faa0aa8 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

to stop it, just run:

brew services stop 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
@goodylili
Copy link

This is saving lives

@ntung
Copy link

ntung commented Sep 2, 2022

Thanks for your awesome work!

@cybernerdie
Copy link

Thanks for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment