# Instalation Redis [Windows/Linux/Mac/Docker]

*A Complete Guide to Installing Redis on Windows, Linux, Mac, and Docker*

Before we begin, make sure you’re mentally prepared — Redis is fast, and we don’t want you to fall behind while installing it. 😆  
In this article, you’ll learn how to install Redis across multiple operating systems so you can start building real-time, high-performance applications.

---

## **1\. Installing Redis on Windows**

Officially, Redis **does not provide a native Windows build**. But don’t worry — we can still run Redis using **WSL (Windows Subsystem for Linux)** or **Docker**. The recommended way is using **WSL**.

### **Install Redis via WSL**

1. Install WSL (if not already installed)
    
    ```bash
    wsl --install
    ```
    
    *If you’re asked to restart, go ahead — don’t postpone it like that diet plan that starts “next Monday.” 🥲*
    
2. Install Redis inside WSL
    
    ```bash
    sudo apt update
    sudo apt install redis-server
    ```
    
3. Start Redis
    
    ```bash
    redis-server
    ```
    
4. Test Redis connection
    
    ```bash
    redis-cli ping
    ```
    
    Expected output:
    
    ```plaintext
    PONG
    ```
    

---

## **2\. Installing Redis on Linux (Ubuntu/Debian)**

Linux users get the easiest installation experience since Redis is available in official repositories.

### **Installation Commands**

```bash
sudo apt update
sudo apt install redis-server
```

### **Start & Enable Redis**

```bash
sudo systemctl enable redis-server
sudo systemctl start redis-server
```

### **Check Status**

```bash
sudo systemctl status redis-server
```

### **Test Connection**

```bash
redis-cli ping
```

If you see `PONG`, congratulations — Redis is ready! 🎉

---

## **3\. Installing Redis on macOS**

For macOS, we’ll use Homebrew. If you don’t have Homebrew installed, get it from [https://brew.sh/](https://brew.sh/)

### **Install Redis**

```bash
brew install redis
```

### **Start Redis Service**

```bash
brew services start redis
```

### **Test Connection**

```bash
redis-cli ping
```

If it returns `PONG`, Redis is now running faster than the weather changing in five minutes. 🌦

---

## **4\. Installing Redis with Docker**

If you prefer a modern and hassle-free setup, Docker is your best friend.

### **Pull and Run Redis**

```bash
docker run --name redis-local -d -p 6379:6379 redis
```

### **Access the Redis CLI**

```bash
docker exec -it redis-local redis-cli
```

Then test:

```bash
ping
```

---

## **Conclusion**

You now have multiple ways to install Redis:

| OS / Platform | Installation Method | Difficulty |
| --- | --- | --- |
| Windows | WSL or Docker | Easy |
| Linux | apt-get | Super easy |
| macOS | Homebrew | Easy |
| Docker | One command | Lightning fast ⚡ |

With Redis successfully installed, you’re ready to explore basic commands such as `SET`, `GET`, and `EXPIRE`, and begin real caching or pub/sub implementation.
