Question: How to install Redis on Mac?


There are multiple ways to install Redis on a Mac, but one of the easiest and most popular methods is using Homebrew, a package manager for macOS. Here's how you can do it:

Install Homebrew (if you haven't already):

Open your terminal and run the following command:

/bin/bash -c "$(curl -fsSL"
  1. Install Redis using Homebrew:

Once Homebrew is installed, run the following command in your terminal:

brew install redis
  1. Start Redis server:

To start Redis server, run the following command in your terminal:


By default, Redis will listen on port 6379. If you want to change the port, you can do so by modifying the configuration file located at /usr/local/etc/redis.conf.

  1. Verify installation:

After the installation completes, you can verify that Redis has been up and running correctly by running the following command in your terminal:

redis-cli ping

If Redis is working correctly, it will return the following response:


That's it! You have successfully installed Redis on your Mac using Homebrew

Was this content helpful?

Start building today

Dragonfly is fully compatible with the Redis ecosystem and requires no code changes to implement.