First we visit the address
https://github.com/tporadowski/redis/releases
Here we choose to download according to our own system I am After downloading the Windows msi installation package
, we double-click it to run it
Then the next step
Then you have to agree to its terms here anyway. If you agree not to use it, it’s as simple as checking the box and selecting Next
Here we need to select its installation directory and then check the middle selection box. It is asking you if you need help. It is necessary to configure environment variables. Otherwise, you have to configure it yourself and click Next
Next
Next
Install
After installation, click Finish
Then we have two ways to connect to Redis
The first method is to find the Redis installation directory we selected
Find the redis-cli.exe file in the directory and double-click to run
It will automatically connect to the Redis installed on this machine
There is another way:
redis-cli -h IP地址 -p 端口 -a 密码
Here, because I am the local IP, the IP is 127.0.0.1. And if it has not been set, the default port of Redis is 6379
In this way, we are obviously connected