Table of contents
1.
Introduction
2.
Installing Redis Stack 
2.1.
How to install Redis Stack using tarballs
2.2.
How to install Redis Stack using Docker
2.3.
How to install Redis Stack on Linux 
3.
How to install Redis Stack on macOS
4.
FAQs
5.
Key Takeaways
Last Updated: Aug 13, 2025

Installing Redis Stack

Author Gaurav Joshi
0 upvote
Career growth poll
Do you think IIT Guwahati certified course can help you in your career?

Introduction

In this blog, we will discuss installing the Redis stack. But before going into that first, we would like you to know what Redis stack is and why it is popular.

Redis is defined as an open-source (BSD licensed), stored data structure in memory and used as a database, cache, message broker, and streaming the engine. Redis provides us with data structures like strings, lists, hashes, sets, bitmaps, streams, hyper logs etc. Functions like ReplicationLua ScriptingIRU evictionTransaction and on-disk persistence of different levels are built-in in Redis. Redis is written in ANSI C language, and it works on most of the POSIX systems like Linux, *BSD, and Mac OS X.

Redis allows us to run the atomic operations like appending into a string, incrementing the value in the hash, pushing elements to a list, union, difference etc.

To achieve the top performance, Redis works with an in-memory dataset. Redis can persist our data by periodically dumping the dataset or appending each command to the disk-based log, depending on our use cases. We can also disable the persistence if we need a feature-rich, network, in-memory cache.

Next, in this blog, we will see how to Install the Redis stack.

Installing Redis Stack 

Redis Works on most of the POSIX systems like Linux, *BSD, and MAC OS, X. We will discuss the installation process in detail. 

How to install Redis Stack using tarballs

  1. After Unzipping the Redis start-server download, start the Redis server by following the command.

     /path/to/redis-stack-server/bin/redis-stack-server
     
  2. To add Redis stack server binaries to your path, open the file using the ~/.bashrc  or  ~/zshrc command depending on your system and then type in the below command

     export PATH=/path/to/redis-stack-server/bin:$PATH
     
  3. If Redis installation is already done on your system, override that path variable, or you can choose to only add the Redis-stack-server binary by typing the following command

    export PATH=/path/to/redis-stack-server/bin/redis-stack-server:$PATH
     
  4. Now start the Redis stack server by the Redis-stack-server command

How to install Redis Stack using Docker

First, select the Docker image  

  • redis/redis-stack:-  It contains both the  Redis Stack server and RedisInsight. This container best suits local development because it allows us to use the embedded RedisInsight to visualise our data.
     
  • redis/redis-stack-server:-  It provides a Redis Stack server only. This container is suited best for production deployment.
     

So depending on the docker image. 

  1. To start the Redis Stack server using the Redis-stack-server image, you need to run the following command in your terminal:

     docker run -d --name redis-stack-server -p 6379:6379 redis/redis-stack-server:latest 

    To start the Redis Stack developer container using the Redis-stack image, you need to run the following command in your terminal:

    docker run -d --name redis-stack -p 6379:6379 -p 8001:8001 redis/redis-stack:latest
     
  2. Now connect with the server using redis-cli. If you don't have it installed, you can run it from Docker Container.

    $ docker exec -it redis-stack redis-cli
     
  3. To Configure files By default, the Redis Stack Docker containers use internal configuration files for Redis. To start Redis with local configuration file, we can use the -v volume options:

    $ docker run -v `pwd`/local-redis-stack.conf:/redis-stack.conf -p 6379:6379 -p 8001:8001 redis/redis-stack:latest

How to install Redis Stack on Linux
 

  1. Install the recent stable version of the Redis stack from the official packages.redis.io APT repository 

    curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg 
    echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list 
    sudo apt-get update
    sudo apt-get install redis-stack-server
     
  2. You can also install the recent stable version of the Redis stack from the official packages.redis.io YUM repository.
    Create file /etc/yum.repos.d/redis.repo and add the following contents in it.

    [Redis]
    name=Redis
    baseurl=http://packages.redis.io/rpm/rhel7
    enabled=1
    gpgcheck=1

    curl -fsSL https://packages.redis.io/gpg > /tmp/redis.key
    sudo rpm --import /tmp/redis.key
    sudo yum install epel-release
    sudo yum install redis-stack-server

How to install Redis Stack on macOS

We install Redis stack in macOS using Homebrew, So before following the below instruction, you must ensure that Homebrew is already installed in your system. Three brew casks are available 

  • redis-stack, which contains both the redis-stack-server and the redis-stack-redisinsight casks.
  • Redis-stack-server, which provides only the Redis Stack server.
  • Redis-stack-redisinsight, which contains only the RedisInsight

Installation using Homebrew

  1. Tap the Redis stack homebrew tap :
  2. brew tap redis-stack/redis-stack
  3. Now run the brew install:
  4. brew install Redis-stack
     

Redis stack server cask would install both the Redis and Redis stack binaries. Now to run these binaries, it depends on whether you have already installed the Redis in your system or not. I am writing down the instructions for both a first-time installer and some who had already installed Redis.

If you are a first-time installer, then follow the below instruction.
 

  1. If you have installed Redis for the first time, all binaries would have been installed and are accessible from $PATH.In M1 Macs, /opt/homebrew/bin is in your path. On Intel-based Macs, /usr/local/bin should be in the $PATH.
     
  2. To check this run 
    echo $PATH
    Get confirmed if the output contains /opt/homebrew/bin or /usr/local/bin based on system.
     

If you have already installed Redis, follow the instruction.
 

If you have already installed Redis in your system, you might want to modify your $PATH to ensure you are using the latest Redis Stack binaries.

Open the file using the ~/.bashrc or '~/zshrc` command (depending on your shell), and add the following lines.
 

If you are using Intel-based Macs add:

export PATH=/usr/local/Caskroom/redis-stack-server/<VERSION>/bin:$PATH
 

If you are using M1 Macs add:

export PATH=/opt/homebrew/Caskroom/redis-stack-server/<VERSION>/bin:$PATH
 

In both cases, replace the <VERSION> with your newly installed version of Redis Stack. For example, with version 6.2.0, the path is as follows:

export PATH=/opt/homebrew/Caskroom/redis-stack-server/6.2.0/bin:$PATH

FAQs

  1. What is Redis?
    Redis is defined as an open-source (BSD licensed), stored data structure in memory and used as a database, cache, message broker, and streaming the engine.
     
  2. Is Redis Popular?
    Redis is very popular and is used by most tech giants like Twitter, Github, Snapchat, Stack Overflow etc.
     
  3. Redis is written in what language is it supported on all platforms?
    Redis is written in ANSI C language, and it works on most of the POSIX systems like Linux, *BSD, and Mac OS X.

Key Takeaways

In this article, we have discussed Big Structured Data in detail. We have also briefly explained different sources of Big Structured Data.

I hope this article must have helped you improve your learning about Big Data. To get more knowledge about Big Data and Hadoop, practice some quality SQL questions and visit our blogs on Databases in Coding Ninjas Studio. If you are preparing for an interview, visit our Interview Experience Section. To become more confident in DSA, try out Interview Problems in our Code studio. You can also consider our Mern Stack Course to give your career an edge over others.

 

Live masterclass