Install
Instructions on how to install Redis on Windows and Mac
Mac
Install Redis via Brew.
$ brew install redis
Turn on your Redis server.
$ redis-server
Open a new terminal to enter the Redis-cli.
$ redis-cli
127.0.0.1:6379>
Execute a simple Redis command to verify your Redis server is running and available.
127.0.0.1:6379> set user:1 "Jane"
127.0.0.1:6379> get user:1
127.0.0.1:6379> exit
CONGRATULATIONS! You've successfully installed and set up a Redis server.
Windows
Redis doesn't play nice with windows. You will want to install Windows Subsystem for Linux (wsl) for the best experience. Please follow the steps below to get WSL, Ubuntu, and Redis installed on your system.
Step 1 - Enable the Windows Subsystem for Linux
Open PowerShell as Administrator and run:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
RESTART YOUR COMPUTER AFTER THE INSTALL IS DONE.
Step 2- Install your Linux distribution of choice
Open the Microsoft Store and search for Ubuntu.
From the Ubuntu page, select "Get".
You might get asked to install, go ahead and click install if it asks.
You will need to click launch after it downloads and installs.

Step 3 - Create a user account and password

Step 4 - Setup and test Redis
First, make sure to get all the latest updates, upgrade, and install the Redis-server. Then check what version was installed.
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install redis-server
$ redis-cli -v
Restart the Redis server to make sure it is running.
$ sudo service redis-server restart
Execute a simple Redis command to verify your Redis server is running and available.
$ redis-cli
127.0.0.1:6379> set user:1 "Jane"
127.0.0.1:6379> get user:1
127.0.0.1:6379> exit
Stopping your Redis server.
$ sudo service redis-server stop
CONGRATULATIONS! You've successfully installed and set up a Linux distribution with a Redis server that is completely integrated with your Windows operating system!
Last updated
Was this helpful?