How to configure Redis-Server on Bash on Ubuntu on Windows 10 (WSL)

I recently spoke at SVDevOps’ monthly meetup in the beginning of September and one of the attendees asked if it were possible to configure Redis-Server on WSL. I didn’t have an answer at the time so I put a note in my “Blog Post Ideas” to check it out and see if I could get it going. Good news! I was able to get Redis working on Bash on Ubuntu on Windows (BoUoW) aka, WSL, and this post will show you how you can too.

First you will want to install redis-server by typing the following:

Next, you will want to edit /etc/redis/redis.conf and change the following line to

To confirm, the above line should now read:

Finally, restart the service by typing:

Next you can test your Redis-Server instance by typing the following:

I also wrote a quick little .sh script if you just wanted to run it that way. The script is included below:

And there you go!

Reminder: All of my posts are provided "AS IS", imply no warranties, and confer no rights or special privileges. Use of included postings, code samples and other works are subject to the terms specified at Microsoft. For more information, click here.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.