Reset the permissions of /usr/local and Homebrew’s caches to the current user:

Hey guys, Are you trying to install redis on your Mac and you are running into a permission error? if so, this tutorial is for you. if not just take a glass of water and archive it, you might need it someday.

In this tutorial Valentine E. Abako is trying to start redis service using homebrew on his mac, but he has encounter an error due to permission issues.

The screenshot below will only occur when redis is not in the current user directory.

Screenshot of permission error on Valentine Abako Terminal.

How to solve the redis permission issue on Mac.

run the following on the terminal (Mac users only).

sudo chown -R $USER:admin /usr/local /Library/Caches/Homebrew

Redis should be on the current user directory now. if you are able to see the screen below then you are fine now.

Brew updating

yesssss…..we are fine now.

Start Redis services using brew

Please run the following command in the terminal.

brew services start redis

Test redis if it running

redis-cli ping

You should see a PONG on your terminal. once seen You are fine.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade