How to Install Redis on Windows 10

1103


Enable WSL

  1. Open Powershell as Adminstrator and run the below command
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  1. Reboot your machine

  2. Download Ubuntu from Microsoft Store

Install Redis

  1. Open Ubuntu and execute the below commands.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install redis-server
  1. Verify the installation using the below command:
redis-cli -v
  1. To restart redis server, execute the below command
sudo service redis-server restart
  1. To Stop the redis server, execute the below command
sudo service redis-server stop
  1. To Start the redis server, execute the below command
sudo service redis-server start