Linux (CentOS/RHEL using yum)

  1. Add the EPEL repository (for CentOS/RHEL):
  sudo yum install epel-release
  
  1. Install Redis:
  sudo yum install redis
  
  1. Start Redis Service:
  sudo systemctl start redis
  
  1. Enable Redis to start on boot:
  sudo systemctl enable redis
  

Linux (Ubuntu/Debian using apt)

  1. Update package list:
  sudo apt update
  
  1. Install Redis Server:
  sudo apt install redis-server
  
  1. Start Redis Service:
  sudo systemctl start redis
  
  1. Enable Redis to start on boot:
  sudo systemctl enable redis
  

macOS (using Homebrew)

  1. Install Homebrew (if not already installed):
  /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  
  1. Install Redis:
  brew install redis
  
  1. Start Redis Service:
  brew services start redis
  

Windows

  1. Download Redis for Windows:

    • Download the latest stable version of Redis for Windows from the official Redis website.
  2. Extract and Run Redis:

    • Extract the downloaded zip file and navigate to the extracted folder.
  3. Run redis-server.exe to start the Redis server.

    • Optionally, run redis-cli.exe for command-line interaction.