Redis for Windows Free Installation

Redis is completely open source and free, complies with the BSD protocol, and is a high-performance key-value database. It is usually called a data structure server because the value can be a string (String), hash (Hash), list (list), set (sets) and sorted sets (sorted sets) and other types.

Download the
free installation version of windows
https://github.com/MicrosoftArchive/redis/releases/download/win-3.2.100/Redis-x64-3.2.100.zip

Installation steps
Step 1: Unzip and copy the files
Unzip the downloaded compressed file Redis-x64-3.2.100.zip, and rename it to Redis3. Copy it to the corresponding directory (because I am a virtual machine, I only put a C drive, here is C:\Redis3 as an example. It is recommended not to put it under the system disk):


Step 2: Configure environment variables:
My Computer→right click and select properties→advanced system settings→environment variables:

In the system environment variable Path, add c:\Redis3;, you cannot delete or overwrite the variable value of the original Path.


Step 3: Start the
Redis service. Open the dos window. To start the Redis service, you need to switch to the Redis directory. Start the command:

$ cd c:\Redis3
$ redis-server.exe redis.windows.conf
1
2
Successful startup:


Step 4: Register windows service
Although redis is started above, as long as the dos window is closed, the redis service will stop. So redis must be set as a service under windows.
Close the started DOS window, reopen the DOS window (be sure to open it as an administrator, opening method: Windows start → enter cmd → right-click to open as an administrator), switch to the redis3 folder, and enter the command:

$ cd c:\Redis3
$ redis-server --service-install redis.windows-service.conf --loglevel verbose
1
2
Test and use
Start the Redis system service and
open the dos window (must be opened as an administrator. Open method: Windows start → enter cmd → right click, open as an administrator), enter the command:

$ net start Redis
1
started successfully:


②Open the client test using redis-cli.
Open the dos window and enter the command:

$ redis-cli
1
Use the ping command to check whether the redis service is started:

$ ping
1
performs simple assignment and value operations;

Test Results:

————————————————
Copyright statement: This article is the original article of the CSDN blogger "Sand sinking in the sea". It follows the CC 4.0 BY-SA copyright agreement. Please attach the original source link and This statement.
Original link: https://blog.csdn.net/w546097639/article/details/88547486

Guess you like

Origin blog.csdn.net/qq_42000661/article/details/114832302