Install and run Redis locally

Reading Time: < 1 minutes

The easiest way is through Brew, a package manager. So if you have not installed yet, run this:

$ /bin/bash -c "$(curl -fsSL"
$ brew update
$ brew install redis

Start the service

$ brew services start redis

Ping in order to see if it is running properly

$ redis-cli ping

Another option is to enter to the prompt and run commands from there

$ redis-cli> ping

To stop the service run:

$ brew services stop redis

Redis configuration file:


Uninstall Redis and all related files.

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

Now you can play with more commands such as Delete all keys by a prefix in Redis cluster

Guide based on this document

About the author

Andrés Canavesi
Andrés Canavesi

Software Engineer with 15+ experience in software development, specialized in Salesforce, Java and Node.js.

Related posts

Leave a Reply

%d bloggers like this: