Detailed steps to install Redis on Windows system

Detailed steps to install Redis on Windows system:

1. Download the Redis installation package (the installation package here needs to be the installation package in the window environment).

After downloading the Redis installation package, decompress the installation package, as shown in the following figure:

figure 1

 

2. Enter the command line interpreter application available in the Windows operating system.

Search for CMD in the lower left corner of the computer, and then click OK, and the [Command Prompt] window will pop up, as shown below:

figure 2

 

image 3

 

You can also use the shortcut key windows+R on the keyboard, a running window will appear in the lower left corner of the computer, and then click OK, and the [Command Prompt] window will pop up:

Figure 4

 Figure 5

 

3. Enter the Redis directory in the [Command Prompt] window.

My local installation directory is in: D:\Program Files\redis\Redis

Therefore, in the [Command Prompt] window, enter

D:

cd D:\Program Files\redis\Redis

As shown below:

Figure 6

 

Enter the locally installed Redis directory.

4. Start Redis.

Enter in the [Command Prompt] window: redis-server.exe redis.windows.conf

Then click OK to start Redis, as shown below:

Figure 7

 

The [Command Prompt] window that starts the Redis service does not need to be closed, because the service needs to be executed all the time. If you want to close the service, just close the [Command Prompt] window.

5. Test using Redis.

Re-open a [Command Prompt] window,

Also in the [Command Prompt] window, enter

D:

cd D:\Program Files\redis\Redis

First enter the Redis directory,

Then enter [redis-cli] to confirm, as shown below:

Figure 8

Pay attention to the official account (Moon Shadow WEB) to learn more front-end and back-end knowledge;
everyone is welcome to pay attention to mutual exchange and learning;

 

Guess you like

Origin blog.csdn.net/qq_34297287/article/details/125415477