Download, install and connect to Redis on Windows system

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
Insert image description here, we double-click it to run it
Insert image description hereThen the next step
Insert image description hereThen 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
Insert image description here
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
Insert image description here
Next
Insert image description here
Next
Insert image description here
Install
Insert image description here
After installation, click Finish
Insert image description here
Then we have two ways to connect to Redis

The first method is to find the Redis installation directory we selected
Insert image description here
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
Insert image description here
There is another way:

redis-cli -h IP地址 -p 端口 -a 密码

Insert image description here
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

Guess you like

Origin blog.csdn.net/weixin_45966674/article/details/135015702