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:

sudo apt-get install redis-server

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:

sudo service redis-server restart

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

$ redis-cli> set boo "ahh"> get boo

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

sudo apt-get install redis-server -y
sudo sed -i -e 's/' /etc/redis/redis.conf
sudo service redis-server restart

And there you go!

Skip to main content