How to run Redis on Window 11

open window PowerShell and run command

wsl --install

Installing Redis on Ubuntu is a straightforward process. Here's a step-by-step guide:


Step 1: Update the System

Ensure your system packages are up to date:

sudo apt update
sudo apt upgrade -y

Step 2: Install Redis

Use the default Ubuntu package manager to install Redis:

sudo apt install redis-server -y

Step 3: Verify Installation

Check if Redis is installed and running:

redis-server --version

Start the Redis service (if not already running):

sudo systemctl start redis-server

Enable Redis to start automatically on boot:

sudo systemctl enable redis-server

Step 4: Test Redis

Open the Redis CLI to test the installation:

redis-cli

Type the following command to test the server:

ping

If everything is working, you should see:

PONG

Step 5: if not working and show error Redis

Edit the Redis configuration file to adjust settings:

sudo systemctl unmask  redis-server.service

Step 6: Check Redis Status

To ensure Redis is running properly, check its status:

sudo systemctl status redis-server

You should see a message indicating that Redis is active and running.