Skip to content

Commit d6340ea

Browse files
Update 00.docker_redis_installation.md
1 parent 494e97d commit d6340ea

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

redis/00.docker_redis_installation.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,56 @@ Once you have the meal, you don’t need the supermarket (internet) to eat it!
115115

116116
## To run Redis on Windows, you can use the following method. Note that Redis is not natively supported on Windows, but these workarounds are effective.
117117

118+
119+
### **Option 1: Windows Subsystem for Linux (WSL)**
120+
1. **Install WSL**
121+
Open PowerShell as Admin and run:
122+
```powershell
123+
wsl --install
124+
```
125+
Reboot your machine and complete the setup for a Linux distribution (e.g., Ubuntu).
126+
127+
2. **Install Redis in WSL**
128+
In the WSL terminal:
129+
```bash
130+
sudo apt update && sudo apt upgrade -y
131+
sudo apt install redis-server -y
132+
```
133+
134+
3. **Start Redis**
135+
Run:
136+
```bash
137+
sudo service redis-server start
138+
```
139+
140+
4. **Connect from Windows**
141+
Use `redis-cli` in WSL or a Windows Redis client pointing to `localhost:6379`.
142+
143+
---
144+
145+
### **Option 2: Memurai (Redis-Compatible for Windows)**
146+
1. **Download Memurai**
147+
Get the free developer edition from [Memurai](https://www.memurai.com/).
148+
149+
2. **Install and Run**
150+
Follow the installer steps. Memurai runs as a Windows service.
151+
152+
3. **Verify**
153+
Use `redis-cli` (download separately) or a GUI tool:
154+
```bash
155+
redis-cli -h localhost -p 6379
156+
```
157+
158+
---
159+
160+
### **Option 3: Deprecated Microsoft Archive (Not Recommended)**
161+
⚠️ **Outdated and unsupported** for production. Use only for testing:
162+
1. Download the deprecated Redis Windows port from [Microsoft Archive](https://github.com/microsoftarchive/redis/releases).
163+
2. Extract and run `redis-server.exe`.
164+
165+
---
166+
167+
### **Option 4: Docker**
118168
### **Step 1: Install Docker Desktop**
119169
1. **Download Docker Desktop**
120170
Go to [Docker Desktop for Windows](https://www.docker.com/products/docker-desktop/) and download the installer.

0 commit comments

Comments
 (0)