You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: redis/00.docker_redis_installation.md
+50Lines changed: 50 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -115,6 +115,56 @@ Once you have the meal, you don’t need the supermarket (internet) to eat it!
115
115
116
116
## 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.
117
117
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**
118
168
### **Step 1: Install Docker Desktop**
119
169
1. **Download Docker Desktop**
120
170
Go to [Docker Desktop for Windows](https://www.docker.com/products/docker-desktop/) and download the installer.
0 commit comments