Skip to content

Instantly share code, notes, and snippets.

Last active February 6, 2023 03:39
What would you like to do?
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.


Uninstall Redis and its files.

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

Great thanks.

Copy link

For myself for future reference, or anyone else interested :)

You can make redis run in the background and add helpful aliases to start/stop/test redis:

In your redis.conf, /usr/local/etc/redis.conf, set daemonize yes, and it will run in the background.

Then add the following aliases:

alias redis.start="redis-server /usr/local/etc/redis.conf"
alias redis.stop="pkill redis-server"
alias redis.test="redis-cli ping"

Copy link

Thank You

Copy link

gitNavV commented Jan 19, 2022


Copy link

many thanks!

Copy link


Copy link

Thank you!

Copy link

Thanks its working

Copy link

thanks you!

Copy link


Copy link

thank you!

Copy link

ATSiem commented Feb 16, 2022


Copy link

alekseyl-workato commented Feb 18, 2022

If you need to configure brew-driven redis, then configuration could be found here:


Copy link

To restart redis after an upgrade:

  brew services restart redis

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

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

Copy link

This is saving lives

Copy link

ntung commented Sep 2, 2022

Thanks for your awesome work!

Copy link

Thanks for this

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