dev-resources.site
for different kinds of informations.
How to Install Redis on Windows Using WSL2
Published at
7/22/2024
Categories
redis
windows
wsl
tutorial
Author
azzamaddouri
Author
12 person written this
azzamaddouri
open
Redis is not officially supported on Windows. However, you can install Redis on Windows by enabling the Windows Subsystem for Linux (WSL2), which lets you run Linux binaries natively on Windows. In this brief tutorial, I'll guide you step by step to install Redis on Windows. ๐
Step-by-Step Guide
-
Enable WSL2:
- Open PowerShell as an administrator and run:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
-
Install a Linux Distribution:
- Launch the Microsoft Store by running:
start ms-windows-store:
Open Ubuntu and enter a new Unix username and password when prompted.
-
Set Up Redis:
- Run the following commands in the Ubuntu terminal to install Redis:
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
```bash
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
```
```bash
sudo apt-get update
```
```bash
sudo apt-get install redis
```
-
Start the Redis Server:
- After the installation is complete, start the Redis server with:
sudo service redis-server start
-
Connect to Redis:
- Test that your Redis server is running by connecting with the Redis CLI:
redis-cli 127.0.0.1:6379> ping
Congratulations! You've successfully installed Redis on Windows. ๐ Happy coding! I hope this helps you! ๐
References
wsl Article's
30 articles in total
Update WSL Ubuntu password
read article
Building OpenCV 4.10.0 with GUI Support in WSL
read article
Video: Install Ubuntu using WSL 2
read article
Install Zellij on WSL
read article
Work from anywhere with VSCode Remote Tunnels
read article
SSL verification error at depth 2 - Zscaler | WSL
read article
Accelerate 1-bit LLM Inference with BitNet on WSL2 (Ubuntu)
read article
Just start using WSL
read article
Change WSL/Docker files to another disk
read article
Setup your laravel 11 in windows
read article
Install Ubuntu on WSL 2
read article
How to Install WSL from PowerShell on Windows 10 and 11
read article
WSL in AWS Windows Server 2022 Core instance
read article
Docker Installation Log for WSL 2 on Windows
read article
Enable WSL shell in GitHub Desktop
read article
Installing Ruby using rbenv on your WSL Ubuntu system
read article
How to Install Redis on Windows Using WSL2
currently reading
PowerShell Development in Neovim
read article
WSL: Gerenciando o disco da distro
read article
Docker
read article
Share Postgresql from Windows to WSL Linux
read article
Add Manjaro into WSL 2
read article
Using WSL2 as primary driver for 3 months with Fedora
read article
Wsl installation error
read article
Install Debian in Different Location -WSL Windows
read article
Monitor GPU Usage in WSL debian
read article
Dicas e configuraรงรตes para seu sistema linux
read article
Instalando de maneira rรกpida e eficiente suas ferramentas no WSL. Pt-3
read article
Arch install azure cli
read article
Melhorando e configurando seu novo Shell linux. Pt-2
read article
Featured ones: