Install Redis Server on Ubuntu running on Windows 11

Video Summary

Welcome back to another informative video! In our previous tutorial, we covered the installation of Ubuntu Linux on Windows 11 using the Windows Subsystem for Linux (WSL). Today, we’ll take it a step further and explore how to utilize this Linux implementation to install and configure Redis server for local development. Let’s get started!

Step 1: Accessing Ubuntu Linux To begin, click on the Start button and search for “Ubuntu.” Hit Enter, and the Ubuntu command window will open. Since it automatically logs you in, you’re ready to proceed.

Step 2: Adding the Redis Repository The first task is to add an additional repository. Follow these steps:

  1. Run the command “sudo add-apt-repository ppa:redislabs/redis.”
  2. Enter your password when prompted to proceed.

Step 3: Updating Packages Next, update your local repositories and packages by executing the following commands:

  1. Run “sudo apt update” to search for any available updates.
  2. If updates are found, run “sudo apt upgrade” to confirm and install them.

Step 4: Installing Redis Server Now it’s time to install the Redis cache server:

  1. Execute “sudo apt install redis-server” to initiate the installation process.
  2. Confirm the installation when prompted.

Step 5: Starting Redis Server To start the Redis server, use the command “sudo service redis-server start.” It will begin running on the default port within your Ubuntu installation.

Step 6: Adding Redis Insight Redis Insight is a graphical user interface that provides a visual representation of your Redis server’s activity. Here’s how to install it:

  1. Visit the Redis Insight website and provide your email address to initiate the download.
  2. Once downloaded, run the installer to install Redis Insight on your system.
  3. Launch Redis Insight and grant it access through your firewall.

Step 7: Exploring Redis Insight After opening Redis Insight, it will automatically detect your local host and the default Redis server port (6379). You can now monitor and manage your Redis server using the graphical interface. Features include viewing keys, adding, deleting, and editing values, as well as monitoring CPU, memory, and storage usage.

Conclusion: Congratulations! You’ve successfully installed and configured Redis server using the Ubuntu Linux implementation within Windows 11. In future videos, we will explore how to integrate Redis caching into a .NET 6 Blazor server app, allowing you to perform development tests. Stay tuned for our upcoming tutorial on deploying the live server to the Azure Redis service. Thank you for watching!

Scroll to Top