Skip to content

Instantly share code, notes, and snippets.

Embed
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.

/usr/local/etc/redis.conf

Uninstall Redis and its files.

brew uninstall redis
rm ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
@mlsaito

This comment has been minimized.

Copy link

@mlsaito mlsaito commented Apr 27, 2018

Thank you!

@ieatdriod

This comment has been minimized.

Copy link

@ieatdriod ieatdriod commented Jun 7, 2018

Thank you!!

@NdagiStanley

This comment has been minimized.

Copy link

@NdagiStanley NdagiStanley commented Oct 2, 2018

👍

@DollarAkshay

This comment has been minimized.

Copy link

@DollarAkshay DollarAkshay commented Oct 8, 2018

How would I stop the background redis server after running redis-server /usr/local/etc/redis.conf ?

@AELSchauer

This comment has been minimized.

Copy link

@AELSchauer AELSchauer commented Oct 15, 2018

👍

@joostvanveen

This comment has been minimized.

Copy link

@joostvanveen joostvanveen commented Dec 25, 2018

How would I stop the background redis server after running redis-server /usr/local/etc/redis.conf ?

brew services stop redis

@elnemesisdivina

This comment has been minimized.

Copy link

@elnemesisdivina elnemesisdivina commented Dec 30, 2018

txs!

@Moe-boshi

This comment has been minimized.

Copy link

@Moe-boshi Moe-boshi commented Mar 24, 2019

蟹蟹!

@lokisanhitleson

This comment has been minimized.

Copy link

@lokisanhitleson lokisanhitleson commented May 9, 2019

Simple and great!

@fatalerrortan

This comment has been minimized.

Copy link

@fatalerrortan fatalerrortan commented May 13, 2019

谢谢 danke thanks

@falcucci

This comment has been minimized.

Copy link

@falcucci falcucci commented May 22, 2019

thanks xD

@danielaraujos

This comment has been minimized.

Copy link

@danielaraujos danielaraujos commented May 31, 2019

Thanks!

@liwenjie-sh

This comment has been minimized.

Copy link

@liwenjie-sh liwenjie-sh commented Nov 15, 2019

👍

@SeasonLeee

This comment has been minimized.

Copy link

@SeasonLeee SeasonLeee commented Nov 25, 2019

Thank you sooooo much!😄

@robinjl

This comment has been minimized.

Copy link

@robinjl robinjl commented Nov 27, 2019

Thanks!

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Dec 2, 2019

How would I stop the background redis server after running redis-server /usr/local/etc/redis.conf ?

brew services stop redis

@herbertUG

This comment has been minimized.

Copy link

@herbertUG herbertUG commented Dec 8, 2019

👍

@mhazim2

This comment has been minimized.

Copy link

@mhazim2 mhazim2 commented Dec 17, 2019

thankyou...

@ninemic

This comment has been minimized.

Copy link

@ninemic ninemic commented Dec 21, 2019

🙏

@elgono

This comment has been minimized.

Copy link

@elgono elgono commented Dec 23, 2019

How to install a specific version of redis? Thx!

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Jan 20, 2020

Thank you!

@GustavoVargasAdl

This comment has been minimized.

Copy link

@GustavoVargasAdl GustavoVargasAdl commented Jan 21, 2020

Thanks you!

@elinaldosoft

This comment has been minimized.

Copy link

@elinaldosoft elinaldosoft commented Jan 24, 2020

Thank you very much man :)

@faustaleonardo

This comment has been minimized.

Copy link

@faustaleonardo faustaleonardo commented Jan 25, 2020

Working great. Thanks!

@tukkajukka

This comment has been minimized.

Copy link

@tukkajukka tukkajukka commented Feb 17, 2020

👍 👍

@letyndr

This comment has been minimized.

Copy link

@letyndr letyndr commented Feb 18, 2020

Thanks a lot!

@vbrazo

This comment has been minimized.

Copy link

@vbrazo vbrazo commented Mar 20, 2020

👍

@fernandoporazzi

This comment has been minimized.

Copy link

@fernandoporazzi fernandoporazzi commented Apr 1, 2020

Thanks

@n-makarin

This comment has been minimized.

Copy link

@n-makarin n-makarin commented Apr 2, 2020

🤟

@baronwithyou

This comment has been minimized.

Copy link

@baronwithyou baronwithyou commented Apr 10, 2020

👍

@dileepmandapam

This comment has been minimized.

Copy link

@dileepmandapam dileepmandapam commented Apr 12, 2020

Thanks.

@inandi

This comment has been minimized.

Copy link

@inandi inandi commented Apr 15, 2020

thank you

@Tkko

This comment has been minimized.

Copy link

@Tkko Tkko commented Apr 27, 2020

Helpful

@Rufaely

This comment has been minimized.

Copy link

@Rufaely Rufaely commented May 5, 2020

redis-cli ping
If it replies “PONG”, then it’s good to go!

what does it mean? is running or is good to run? because am getting "PONG" though the server is stoped.

@muhammadkholidb

This comment has been minimized.

Copy link

@muhammadkholidb muhammadkholidb commented May 12, 2020

👍

@aditya1711

This comment has been minimized.

Copy link

@aditya1711 aditya1711 commented May 18, 2020

redis-cli ping
If it replies “PONG”, then it’s good to go!

what does it mean? is running or is good to run? because am getting "PONG" though the server is stoped.

Observing the same behaviour. You got any explanations?

@henok-tesfaye

This comment has been minimized.

Copy link

@henok-tesfaye henok-tesfaye commented May 18, 2020

Thanks.

@nathanhleung

This comment has been minimized.

Copy link

@nathanhleung nathanhleung commented Jun 16, 2020

Thank you!

@brnt

This comment has been minimized.

Copy link

@brnt brnt commented Jun 16, 2020

Thanks! 👍

@jp555soul

This comment has been minimized.

Copy link

@jp555soul jp555soul commented Jul 15, 2020

Cheers! 🔥

@vatologic

This comment has been minimized.

Copy link

@vatologic vatologic commented Jul 27, 2020

Thank you for this!

@danielamorais

This comment has been minimized.

Copy link

@danielamorais danielamorais commented Jul 27, 2020

Thanks!

@KayneWang

This comment has been minimized.

Copy link

@KayneWang KayneWang commented Jul 30, 2020

thx!

@ZheZhou1sfw

This comment has been minimized.

Copy link

@ZheZhou1sfw ZheZhou1sfw commented Jul 30, 2020

Thank you sir!

@xgqfrms

This comment has been minimized.

Copy link

@xgqfrms xgqfrms commented Aug 19, 2020

awesome!

@deduced

This comment has been minimized.

Copy link

@deduced deduced commented Aug 26, 2020

Bangarang!

@spoutop

This comment has been minimized.

Copy link

@spoutop spoutop commented Sep 4, 2020

redis-cli ping
If it replies “PONG”, then it’s good to go!

what does it mean? is running or is good to run? because am getting "PONG" though the server is stoped.

Probably brew is running on the redis server. Try 'brew services stop redis' in the terminal.

@naseemmdali

This comment has been minimized.

Copy link

@naseemmdali naseemmdali commented Sep 18, 2020

thanks👍🏻

@dogo-ilkerkilic

This comment has been minimized.

Copy link

@dogo-ilkerkilic dogo-ilkerkilic commented Sep 23, 2020

thanks 👍

@vikt82

This comment has been minimized.

Copy link

@vikt82 vikt82 commented Oct 20, 2020

thanks👍🏻

@htq287

This comment has been minimized.

Copy link

@htq287 htq287 commented Oct 21, 2020

Thanks

@EugenTrucker

This comment has been minimized.

Copy link

@EugenTrucker EugenTrucker commented Nov 16, 2020

Thank You!

@simeonpashley

This comment has been minimized.

Copy link

@simeonpashley simeonpashley commented Nov 24, 2020

For those looking for a MacOS Apple Silicon/M1 solution, see here redis/redis#8062 (comment)

@Aooohan

This comment has been minimized.

Copy link

@Aooohan Aooohan commented Dec 7, 2020

Thank you!

@RedjinaldCray

This comment has been minimized.

Copy link

@RedjinaldCray RedjinaldCray commented Dec 9, 2020

thank!

@kcloze

This comment has been minimized.

Copy link

@kcloze kcloze commented Dec 12, 2020

For those looking for a MacOS Apple Silicon/M1 solution, see here redis/redis#8062 (comment)

MacOS M1 need to start redis with sudo.
sudo redis-server --daemonize yes

@pencilcheck

This comment has been minimized.

Copy link

@pencilcheck pencilcheck commented Dec 17, 2020

daemonize seems to work for me as well thanks

@aboud-masoud

This comment has been minimized.

Copy link

@aboud-masoud aboud-masoud commented Dec 22, 2020

Great Thank you

@ayhanbaris

This comment has been minimized.

Copy link

@ayhanbaris ayhanbaris commented Jan 1, 2021

teşekkürler

@jasonrhaddix

This comment has been minimized.

Copy link

@jasonrhaddix jasonrhaddix commented Jan 5, 2021

@kcloze sudo redis-server --daemonize yes worked for my M1 mini. Thanks!

@Amit-Dagar

This comment has been minimized.

Copy link

@Amit-Dagar Amit-Dagar commented Feb 2, 2021

Great

@adityaladwa

This comment has been minimized.

Copy link

@adityaladwa adityaladwa commented Feb 8, 2021

Thank you. This is a lot better than any stackoverflow post

@LabN36

This comment has been minimized.

Copy link

@LabN36 LabN36 commented Feb 13, 2021

great

@Wellers0n

This comment has been minimized.

Copy link

@Wellers0n Wellers0n commented Feb 21, 2021

thanks

@jhonalino

This comment has been minimized.

Copy link

@jhonalino jhonalino commented Feb 21, 2021

I love you

@dyeyuen17

This comment has been minimized.

Copy link

@dyeyuen17 dyeyuen17 commented Feb 24, 2021

Works great! Thanks! 👍

@suvix

This comment has been minimized.

Copy link

@suvix suvix commented Mar 17, 2021

thank you!!

@iqbal-muhammad

This comment has been minimized.

Copy link

@iqbal-muhammad iqbal-muhammad commented Mar 17, 2021

works great... Thank you..

@rudiw

This comment has been minimized.

Copy link

@rudiw rudiw commented Mar 20, 2021

awesome...

@ibrahimsha23

This comment has been minimized.

Copy link

@ibrahimsha23 ibrahimsha23 commented Mar 25, 2021

thanks!!

@muarachmann

This comment has been minimized.

Copy link

@muarachmann muarachmann commented Mar 25, 2021

thanks

@rasuloff789

This comment has been minimized.

Copy link

@rasuloff789 rasuloff789 commented Mar 29, 2021

Thanks )) 🙏 😊

@tiagobbraga

This comment has been minimized.

Copy link

@tiagobbraga tiagobbraga commented Mar 30, 2021

thanks

@gabesolomon10

This comment has been minimized.

Copy link

@gabesolomon10 gabesolomon10 commented Apr 6, 2021

thank you :)

@Parkboyoung11

This comment has been minimized.

Copy link

@Parkboyoung11 Parkboyoung11 commented Apr 8, 2021

thank uu

@Sanjit-Prasad

This comment has been minimized.

Copy link

@Sanjit-Prasad Sanjit-Prasad commented Apr 12, 2021

Thanks. I hope I know about "brew services" command earlier.

@kpssachin

This comment has been minimized.

Copy link

@kpssachin kpssachin commented Apr 21, 2021

Thanks.

@volleyball26

This comment has been minimized.

Copy link

@volleyball26 volleyball26 commented Apr 22, 2021

Thanks.

@sivarasanOensys

This comment has been minimized.

Copy link

@sivarasanOensys sivarasanOensys commented Apr 25, 2021

Great, Thanks

@giangdinh

This comment has been minimized.

Copy link

@giangdinh giangdinh commented Apr 28, 2021

👍

@Akhkamov

This comment has been minimized.

Copy link

@Akhkamov Akhkamov commented May 3, 2021

God bless tomismile)

@brunopk

This comment has been minimized.

Copy link

@brunopk brunopk commented May 13, 2021

Thanks

@adrianosmateus

This comment has been minimized.

Copy link

@adrianosmateus adrianosmateus commented May 14, 2021

Thank you

@vladcorn

This comment has been minimized.

Copy link

@vladcorn vladcorn commented May 20, 2021

Works perfectly for me)

@shreyasx

This comment has been minimized.

Copy link

@shreyasx shreyasx commented May 24, 2021

So helpful.

@koraniar

This comment has been minimized.

Copy link

@koraniar koraniar commented May 25, 2021

Thank you!

@salarzaidi

This comment has been minimized.

Copy link

@salarzaidi salarzaidi commented Jun 7, 2021

thanks you

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