Skip to content

Instantly share code, notes, and snippets.

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

RuslanSevrukov commented Sep 23, 2021


Copy link

CyprianTinasheAarons commented Sep 30, 2021


Copy link

denys-kobzar commented Oct 19, 2021

How to run brew redis with loaded specific module ?
for example "redis-server --loadmodule ./target/release/librejson.dylib" for adding json module, but how can i do it with brew version of redis ? thx in advance

Copy link

gagandeepsingh-dev commented Oct 26, 2021


Copy link

virendra-maurya commented Oct 27, 2021

Thanks @tomysmile

Copy link

utsavo-afk commented Nov 11, 2021

Thank you!!

Copy link

elliottwu-noodoe commented Nov 26, 2021

Thanks, nice and clean.

Copy link

sameer-azazi-tw commented Nov 26, 2021


Copy link

SaschaHeyer commented Nov 30, 2021

Thanks, always come back here :D:D

Copy link

saulhappy commented Dec 1, 2021

Should be the second result when searching for Redis!

Copy link

z851103999 commented Dec 3, 2021

thank you

Copy link

nkpremices commented Dec 7, 2021

Thank you

Copy link

aamnapm commented Dec 12, 2021


Copy link

hoist1999 commented Dec 19, 2021

Great thanks.

Copy link

CyberPunkCodes commented Dec 21, 2021

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

Wizkaley commented Dec 30, 2021

Thank You

Copy link

gitNavV commented Jan 19, 2022


Copy link

ihsanbazli commented Jan 23, 2022

many thanks!

Copy link

pleblond commented Jan 28, 2022


Copy link

tolumide-ng commented Jan 28, 2022

Thank you!

Copy link

balagopal-waterlabs commented Feb 2, 2022

Thanks its working

Copy link

SalashnyiTaras commented Feb 4, 2022

thanks you!

Copy link

idmitrymolchanov commented Feb 7, 2022


Copy link

heeropunjabi commented Feb 13, 2022

thank you!

Copy link

adamsiem 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

DataGreed commented Mar 17, 2022

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

Goodnessuc commented Jun 22, 2022

This is saving lives

Copy link

ntung commented Sep 2, 2022

Thanks for your awesome work!

Copy link

cybernerdie commented Nov 3, 2022

Thanks for this

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