Hello, everyone!
This post will share with you how to install Redis on Windows.
Redis is not officially supported on Windows, but there is an MSOpen Tech Native Redis Port available.
In order to download and run Redis on Windows, please follow the steps given below.
Step 1:
Download Latest-Release archived Redis from:
https://github.com/MicrosoftArchive/redis/releases
(3.0.504 is the latest release, if there is a new one you can download it).
Step 2:
Unzip the folder (If you have downloaded the zip file).
or Run the installer (If you have downloaded the msi file).
Step 3:
Run redis-server.exe.
It will start server on your system and 6379 is the default port.
Step 4:
Run redis-cli.exe.
It helps to interact with Redis server through commands.
When you type ping and it says PONG that means it is able to inject with a server.
You can ping any message and get it back.
Then you can use any of your commands.
Step 5:
If you want to use Redis in command line add file path into environment variable.
After that, go to location of Redis folder in command line and run redis-cli.exe.
This is how you can get started with Redis using zip file.
Also, Type "exit" to disconnect.
Additionally:
If you want to connect to remote Redis server:
redis-cli.exe -h XXX.XXX.XXX.XXX -p YYYY
xxx.xxx.xxx.xxx is the IP address and yyyy is the port.
That's all, thanks!