Tool download
When it comes to tool downloads, your first reaction may be to go to the official website to download, but for the redis installation package, the official website does not provide a one-click installation package for windows. The official recommendation is to use the linux subsystem (Windows Subsystem for Linux) For specific tutorials, refer to the official documentation:
https://redis.io/docs/getting-started/installation/install-redis-on-windows/
But in this way, after the computer is restarted, the ip address of the subsystem will change, and it is necessary to find a way to set a fixed ip, which is more troublesome to operate.
Here, we use another method: we found someone else's open source redis installation package for windows operating system from github, and then let's see how it works:
The first one: (one-click installation package, the version may not be updated so timely)
https://github.com/tporadowski/redis/releases
After downloading, it is a one-click installation package of Redis-x64-5.0.14.1.msi, double-click to run:
Then click Next:
After the installation is successful in this way, a service named Redis will appear in the windows service list, and it is in the starting state:
If the state is not running, then redis is not allowed. If installed in this way, the service can be easily uninstalled in the program uninstall list of windows:
The second type: (manually installed as a windows service, this version seems to be updated in a timely manner)
Warehouse address: https://github.com/zkteco-home/redis-windows
In fact, if this method is compared with the first one, the first one is to create a one-click installation page by yourself. After installation, the contents of the corresponding installation directory are similar:
Next, let's take a look at how to install the second method:
For me, I go to the Software folder of the D drive, and then cmd executes the command:
git clone https://github.com/zkteco-home/redis-windows.git
Then open the cmd window as an administrator and execute the command:
install_redis.cmd
The final effect is as follows:
extended learning
Redis is a very common middleware in the enterprise. In the process of functional testing, many business functions will also be realized with the help of redis. Therefore, when you have a deep understanding of redis, it can help you better Do a good job in daily work and design a case with a wider coverage. If you need related learning videos, fans and old fans of the official account can add WeChat (xiaobotester) to get related learning videos through the background of the official account~
If you think the article is helpful to you, you can click like, follow and support~