How to Install Redis on Windows 10
Enable WSL
- Open Powershell as Adminstrator and run the below command
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
-
Reboot your machine
-
Download Ubuntu from Microsoft Store
Install Redis
- Open Ubuntu and execute the below commands.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install redis-server
- Verify the installation using the below command:
redis-cli -v
- To restart redis server, execute the below command
sudo service redis-server restart
- To Stop the redis server, execute the below command
sudo service redis-server stop
- To Start the redis server, execute the below command
sudo service redis-server start