On this page
Installing Redis
Linux (CentOS/RHEL using yum)
- Add the EPEL repository (for CentOS/RHEL):
sudo yum install epel-release
- Install Redis:
sudo yum install redis
- Start Redis Service:
sudo systemctl start redis
- Enable Redis to start on boot:
sudo systemctl enable redis
Linux (Ubuntu/Debian using apt)
- Update package list:
sudo apt update
- Install Redis Server:
sudo apt install redis-server
- Start Redis Service:
sudo systemctl start redis
- Enable Redis to start on boot:
sudo systemctl enable redis
macOS (using Homebrew)
- Install Homebrew (if not already installed):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Install Redis:
brew install redis
- Start Redis Service:
brew services start redis
Windows
-
Download Redis for Windows:
- Download the latest stable version of Redis for Windows from the official Redis website.
-
Extract and Run Redis:
- Extract the downloaded zip file and navigate to the extracted folder.
-
Run redis-server.exe to start the Redis server.
- Optionally, run redis-cli.exe for command-line interaction.