---
title: "Redis on Windows: A Comprehensive Installation Guide"
description: "Digg into how to install and use Redis on Windows via the official installer or WSL in this ATA Learning tutorial!"
canonical: "https://adamtheautomator.com/redis-on-windows/"
---

# Redis on Windows: A Comprehensive Installation Guide

> Digg into how to install and use Redis on Windows via the official installer or WSL in this ATA Learning tutorial!

Source: https://adamtheautomator.com/redis-on-windows/

---

ATA Learning

Tap to hide

[

ATA Learning

](/)

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Search for:  

*   [](https://twitter.com/adbertram)
*   [](https://github.com/Adam-the-Automator)
*   [](https://www.linkedin.com/company/adam-the-automator-llc)
*   [](/feed/)

![How to Install Redis on Windows](https://adamtheautomator.com/wp-content/uploads/2023/09/redis-on-windows.jpg)

# How to Install Redis on Windows

[![](https://secure.gravatar.com/avatar/2788bb1a3f735603f81eca51d68daec56a9d97e805a10268fb2c20afcc76b81b?s=192&d=mm&r=g)Nicholas Xuan Nguyen](https://adamtheautomator.com/author/nicholas-xuan-nguyen/)13 September 20235 min. read

Categories: [IT Ops](/category/it-ops/)

Tags:[Redis](/tag/redis/)[Windows](/tag/windows/)

Table of Contents

*   [Prerequisites](#prerequisites)
*   [Installing Redis on Windows via WSL](#installing-redis-on-windows-via-wsl)
*   [Installing Redis on Windows via The Installer Package](#installing-redis-on-windows-via-the-installer-package)
*   [Testing Your Redis Installation](#testing-your-redis-installation)
*   [Conclusion](#conclusion)

Are you looking to supercharge your data storage but need to figure out how? Look no further than Remote Dictionary Server (Redis)! With its lightning speed, ease of use, and scalability, Redis on your Windows machine is an ideal choice for anyone looking to get the most out of their data.

In this tutorial, you will learn how to install Redis on Windows so you can leverage Redis’s capabilities for caching, data storage, and message queueing.

Read on and conquer any data challenge that comes your way with Redis!

## Prerequisites

This tutorial comprises a series of practical and insightful demonstrations. To make the most out of this tutorial, ensure you have the following in place:

*   A machine running Windows – This tutorial uses Windows 10 64-bit.
*   Windows Subsystem for Linux (WSL) installed on your machine.

Related:[The Ultimate Guide to Windows Subsystem for Linux](https://adamtheautomator.com/windows-subsystem-for-linux/)

## Installing Redis on Windows via WSL

People often call Redis (an open-source, in-memory data structure) a data structure server. Why? The cool thing about Redis is that it lets you store and play around with all sorts of data structures like strings, lists, sets, hashes, and more.

Redis stores data in memory, culminating in swift read and write operations. This behavior makes Redis suitable for scenarios where low latency and high throughput are crucial.

Before you can harness Redis’ speed and efficiency, you must install it on your machine via WSL or the installer package.

> 💡 _WSL seamlessly integrates Linux tools and software into your Windows environment, allowing you to work with Redis and other Linux-based applications without needing a separate virtual machine._

But in this example, you will install Redis via WSL as follows:

1\. Open your Ubuntu terminal on WSL, and run the following `apt update` command to [update the package](https://adamtheautomator.com/ubuntu-apt-get/) information in Ubuntu’s repository.

```bash
sudo apt update -y
```

![Updating the package information](https://adamtheautomator.com/wp-content/uploads/2023/09/image-52.png)

Updating the package information

Related:[Learning Ubuntu Apt Get Through Examples](https://adamtheautomator.com/ubuntu-apt-get/)

2\. Once updated, run the below `curl` command, which does not produce output but downloads the GNU Privacy Guard (GPG) key and saves it as a binary file on your system.

This GPG key will later be used by `apt` to verify the authenticity of packages provided by the Redis repository. Doing so ensures you are installing software from a trusted source.

```bash
sudo curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
```

Related:[CURL Linux Command : Learning By Example](https://adamtheautomator.com/curl-linux/)

3\. Next, execute the `echo` command below to create a repository configuration for Redis and save it in a file named `redis.list` within the `sources.list.d` directory.

This repository configuration is where the `apt` package manager locates and installs Redis packages.

```bash
sudo 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
```

![redis on windows - Creating a repository configuration for Redis](https://adamtheautomator.com/wp-content/uploads/2023/09/image-51.png)

Creating a repository configuration for Redis

4\. Rerun the below command to refresh the local package lists with all configured repositories.

```bash
sudo apt update -y
```

![Refreshing the local package lists](https://adamtheautomator.com/wp-content/uploads/2023/09/image-50.png)

Refreshing the local package lists

5\. After the update, run the following [`apt-cache`](https://www.computerhope.com/unix/apt-cache.htm) command to display the installation candidate versions of the Redis package available from the configured repositories.

```bash
sudo apt-cache policy redis
```

![Listing the installation candidate versions of the Redis package](https://adamtheautomator.com/wp-content/uploads/2023/09/image-49.png)

Listing the installation candidate versions of the Redis package

6\. Finally, run the below command to `install` `redis`.

```bash
sudo apt install redis -y
```

![Installing Redis](https://adamtheautomator.com/wp-content/uploads/2023/09/image-48.png)

Installing Redis

7\. Lastly, execute the below command to `start` the `redis` `service`.

```bash
sudo service start redis
```

![Starting the Redis service](https://adamtheautomator.com/wp-content/uploads/2023/09/image-47.png)

Starting the Redis service

## Installing Redis on Windows via The Installer Package

Are you not in the mood for jumping to WSL and having to memorize commands to install Redis on your Windows machine? No worries, as Redis offers an installer package! This installer package lets you install Redis with a graphical interface, simplifying the installation process.

The installer package simplifies the installation process by providing an executable installer that handles all the necessary configurations and dependencies. An installer package like this is beneficial for users who are unfamiliar with Linux systems.

To install Redis on your Windows machine via the installer package:

1\. Open your favorite web browser and navigate to the official [GitHub Redis release page](https://github.com/microsoftarchive/redis/releases).

2\. Next, click the latest MSI version under the **Asset** section to download the executable file named _**Redis-x64-3.0.504.msi**_.

This version is a port of the original Redis. A port is a version of an application adapted to work with a different operating system or platform.

In this case, the port of Redis has been adapted and modified to work with Windows.

![Downloading the .msi version of Redis’ installer package](https://adamtheautomator.com/wp-content/uploads/2023/09/image-60.png)

Downloading the _.msi_ version of Redis’ installer package

3\. Once downloaded, double-click the executable, which brings up the Redis on Windows Setup wizard (step four).

4\. Now, click **Next** on the welcome page to continue.

![Continuing with the Redis installation on Windows](https://adamtheautomator.com/wp-content/uploads/2023/09/image-59.png)

Continuing with the Redis installation on Windows

5\. Tick the checkbox at the bottom to accept the license agreement and click **Next**.

![Accepting the license agreement](https://adamtheautomator.com/wp-content/uploads/2023/09/image-58.png)

Accepting the license agreement

6\. Leave the default installation folder as is, but tick **Add the installation folder to the PATH environment variable**, and click **Next**.

This feature allows you to run Redis commands from any directory in the command prompt (CMD) or PowerShell, regardless of the current working directory.

![Making the Redis commands accessible from any directory](https://adamtheautomator.com/wp-content/uploads/2023/09/image-57.png)

Making the Redis commands accessible from any directory

7\. Keep the default port number (**6379**), tick the **Add an exception to the Windows Firewall** checkbox, and click **Next**.

This configuration adds an exception to the Windows firewall so that the Redis server can accept incoming connections through port 6379.

![Configuring the port number and firewall exception](https://adamtheautomator.com/wp-content/uploads/2023/09/image-56.png)

Configuring the port number and firewall exception

8\. On the next screen, keep the setting as is since you do not need to set the memory limit at this stage, and click **Next**

![Skipping setting the max memory limit](https://adamtheautomator.com/wp-content/uploads/2023/09/image-55.png)

Skipping setting the max memory limit

9\. Click **Install** to begin the installation process.

![Installing Redis on Windows via the installer package](https://adamtheautomator.com/wp-content/uploads/2023/09/image-54.png)

Installing Redis on Windows via the installer package

10\. Ultimately, click Finish once the installation completes to close the wizard.

![Finishing the Redis installation](https://adamtheautomator.com/wp-content/uploads/2023/09/image-53.png)

Finishing the Redis installation

## Testing Your Redis Installation

With Redis successfully installed on your Windows machine, the action is to test if the installation works. While there are many ways to test the installation, the quickest way is to send a `ping` command and hope to get a PONG response.

To test your Redis installation, follow the steps below:

1\. Execute either of the below commands (on your terminal or PowerShell as administrator) depending on which method you used to install Redis.

Related:[Discover How to Run PowerShell as Administrator](https://adamtheautomator.com/powershell-run-as-administrator/)

These commands launch the Redis Command Line Interface (CLI), which provides an interactive way to communicate with your Redis server.

```bash
# If you installed Redis via WSL
redis-cli
# If you installed Redis via the package manager
redis-cli.exe
```

If successful, your prompt changes to something like the ones below.

![Launching the Redis CLI (installed via WSL) ](https://adamtheautomator.com/wp-content/uploads/2023/09/image-67.png)

Launching the Redis CLI (installed via WSL)

![Launching the Redis CLI (installed via the installer package)](https://adamtheautomator.com/wp-content/uploads/2023/09/image-66.png)

Launching the Redis CLI (installed via the installer package)

2\. In the Redis CLI prompt, run the `ping` command to initiate the communication with your Redis server.

```bash
ping
```

If your Redis server is live and reachable, it responds to the `ping` command with a **PONG** response, as shown below.

![Pinging the Redis server](https://adamtheautomator.com/wp-content/uploads/2023/09/image-65.png)

Pinging the Redis server

3\. Next, execute the following command to `set` keys in your Redis server.

Setting keys in your Redis server lets you harness its capabilities for efficient data storage, retrieval, caching, and various data processing tasks

```bash
set test "Redis is working!"
```

Once keys are set, you will see a response that says **OK,** like the one below.

![Setting a Redis key](https://adamtheautomator.com/wp-content/uploads/2023/09/image-64.png)

Setting a Redis key

4\. Now, run the below `get` command to retrieve the value associated with the key (`test`) you set in step three.

```bash
get test
```

Assuming things go smoothly, the key’s associated value is printed in the response.

![Retrieving a key’s set value](https://adamtheautomator.com/wp-content/uploads/2023/09/image-63.png)

Retrieving a key’s set value

5\. Finally, run the below command to `exit` the Redis CLI prompt.

Congratulations! You can now use Redis’s powerful features and benefits within your Windows environment.

```bash
exit
```

![Exiting the Redis CLI prompt](https://adamtheautomator.com/wp-content/uploads/2023/09/image-62.png)

Exiting the Redis CLI prompt

## Conclusion

Throughout this tutorial, you have learned to install and test your Redis installation on Windows. Embracing new technologies can be daunting, but you have taken a significant step toward harnessing the power of Redis for your projects.

You now have a gateway to lightning-fast data management at your fingertips! With its unmatched speed, scalability, and efficiency, Redis is your go-to solution for maximizing data utilization.

But why not further explore Redis’s advanced capabilities? Perhaps learn how to [manage a dynamic Redis list](https://adamtheautomator.com/redis-list/) or [a Redis sorted set](https://adamtheautomator.com/redis-sorted-set/)? Start integrating Redis into your future projects and elevate your software to new heights!

Share this article

[Share on X](https://twitter.com/intent/tweet?url=https%3A%2F%2Fadamtheautomator.com%2Fredis-on-windows%2F&text=How%20to%20Install%20Redis%20on%20Windows)[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fadamtheautomator.com%2Fredis-on-windows%2F)[Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fadamtheautomator.com%2Fredis-on-windows%2F)

## Related Posts

![](https://adamtheautomator.com/wp-content/uploads/2024/04/idfix.jpg)

### [Solve Azure AD Connect Errors via the Microsoft IdFix Tool](/idfix/)

Fix Azure AD Connect errors fast with the Microsoft IdFix tool—your go-to solution for seamless synchronization and efficient directory management!

![](https://adamtheautomator.com/wp-content/uploads/2024/04/sandboxie.jpg)

### [How to Install Sandboxie on Windows](/sandboxie/)

Secure your Windows system with Sandboxie. Learn how to install this tool hassle-free and safeguard your digital activities!

![](https://adamtheautomator.com/wp-content/uploads/2022/11/How-to-Install-NitroShare-for-Cross-Platform-File-Transfer.jpg)

### [Install NitroShare and Streamline Your File Transfers Today](/nitroshare/)

Simplify cross-platform file transfers with NitroShare. This tutorial guides you through installation and use for fast, effortless file sharing between different operating systems.

## Categories

*   [IT Ops](/category/it-ops/)
*   [Cloud](/category/cloud/)
*   [DevOps](/category/devops/)
*   [Home Ops](/category/home-ops/)
*   [Information Security](/category/infosec/)
*   [Software Development](/category/software-development/)

## Site

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Copyright 2026© ATA Learning | [Privacy Policy](/privacy/)
