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:

  1. Install Homebrew (if you haven't already):

    Open your terminal and run the following command:

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

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

    brew install redis
  3. Verify installation:

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

    redis-cli ping

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

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

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

Start building today

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