DEV Community

Divyanshu Shekhar
Divyanshu Shekhar

Posted on • Edited on

How To Install Redis on Windows 10

Redis runs natively on Linux-based operating systems but can be installed and run on Windows 10/11 using Windows Subsystem for Linux (WSL). In this blog, we will guide you through the steps to install Redis on Windows using WSL.

What is Redis?

Redis full form is Remote Directory Server. Redis is a popular NO-SQL in-memory data structure store that is often used as a database, cache, and message broker.

It is widely used by developers and system administrators to improve the performance and scalability of their applications.

What is WSL?

WSL (Windows Subsystem for Linux) is a compatibility layer for running Linux binary executables natively on Windows.

It provides a lightweight Linux environment that runs on top of the Windows operating system, enabling users to run Linux command-line tools and applications directly on Windows without the need for a virtual machine or dual-boot setup.

Install Redis on Windows 10/11 Using WSL

Now when we have a brief idea of what Redis and WSL is, let’s see how we can install Redis on windows using WSL.

Step 1: Turn on Windows Subsystem for Linux

Before we can install Redis on Windows, we need to enable the Windows Subsystem for Linux (WSL).

WSL is a compatibility layer that enables running Linux binary executables natively on Windows 11 and Windows Server 2019.

Open PowerShell as Administrator and run the following command to enable WSL:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Enter fullscreen mode Exit fullscreen mode

After running this command, you need to reboot your system. Note that this step only needs to be done once.

Read more on How to install Redis on Windows 10.
Find Blog on Google. Install Redis Windows.

Top comments (3)

Collapse
 
timsar2 profile image
timsar2

That repository is for 2016, You can know add Microsoft-Windows-Subsystem-Linux to PowerShell and then install redis.
more details:
redislabs.com/blog/redis-on-window...

Collapse
 
zakgreant profile image
Zak Greant

There is also an up-to-date native port of Redis to Windows called Memurai (memurai.com). It's closed source and the developer edition is free. It's a very convenient option and is fully Redis compatible.

Disclosure: I work at Memurai.

Collapse
 
ajeetraina profile image
Ajeet Singh Raina • Edited

You can install Redis on Windows 10 using Windows Subsystem for Linux(a.k.a WSL2).Do check out tutorial under developer.redislabs.com/create/win...