Windows operating system to install redis locally

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:

d67b462ac223e59880a5e019acda6931.png

a958b85cfa90e14178011495f6ec4203.png

cb7b401387c8bd818971c1cee279072c.png

8f5827df1754383391e51dc9c29f81eb.png

Then click Next:

9e072c8a88746f310aec6504fc090b34.pngAfter 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:

4bfa38470b77d5b25b7b1ad353633184.png

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:

1044013e3bb5aef5ca88f07ab0d911ef.png

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

9790e535378adcad59534b863572d214.png

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:

e61dbd09727c73457f6545cc647fd853.png

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

ab72e29e9a8f59797abd27878aaccc97.png

The final effect is as follows:

96bd39630712d84c6c5999303334726d.png

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~

Guess you like

Origin blog.csdn.net/liboshi123/article/details/128731907