Install and run Redis locally

How to configure Redis to run it in your local machine.

Andres Canavesi
Aug 18, 2020
How to install and run Redis in your local machine
featured image
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