Ever wanted to run a linux application on windows and had to resort to docker, virtual box etc. There is a way out for console and background processes, at-least in a development environment. WSL is primarily a developer tool that allows you to run linux tools and applications.

At work, I have windows laptops to work on a nodejs application with session data and cache on Redis and WSL is a help.

  1. Install WSL - https://docs.microsoft.com/en-us/windows/wsl/install-win10
  2. Once the distro (ubuntu for example) is installed from App, a one-time configuration is required to set up the login.
  3. Once logged update and upgrade ubuntu
$ sudo apt-update
$ sudo apt-upgrade

4. Install and start Redis

$ sudo apt install redis-server
$ sudo service redis-server restart