Installing Redis on Bash in Windows 10

If you haven’t installed Bash (and the Windows Subsystem for Linux) in your Windows 10 machine you can find the installation guide here.

If you are not familiar with Redis, you can find more information about this open source in-memory data store here.

Installing Redis

Open the Start Menu and search for bash.
Start Menu > Bash

In bash, install the Redis Server executing sudo apt-get install redis-server.
Installing Redis

And you are done! You can now start Redis by executing redis-server.
Starting Redis

Press Ctrl+C to stop Redis and go back to the console.

Running Redis as a service

Usually, it is preferable to run Redis in the background, as a service.
To do that, just execute sudo service redis-server start on the console.
Redis will be now executing in the background until the bash console is closed.

Connecting to Redis

Download a Redis client. In my case I prefer to use Redis Desktop Manager.
Click on the connect to Redis Server, with localhost as the host and 6379 as the port.
Connecting using Redis Desktop Manager And you are done!

Stopping Redis

To stop Redis you can either execute sudo service redis-server stop or you simply close the bash console.