Tools/Materials
- Windows 64-bit operating system
- Redis installation Package (current tutorial version 2.8.12)
Method/Step
-
New Folder "Redis" on D disk, right-unzip the Redis Zip package and unzip all the files into the Redis folder. (Other drive characters can also drip ^_^)
File Description:
redis-benchmark.exe #基准测试
redis-check-aof.exe # aof
redischeck-dump.exe # Dump
redis-cli.exe # Client
redis-server.exe # Server
redis.windows.conf # configuration file
Windows run (shortcut key: Windows key +r), enter the "cmd" command to enter the Doc OS window.
Use the command "Redis-server.exe redis.windows.conf" to start the Redis service "skip directly if you don't see the following error." If you also like me to appear the following error, do not worry, there is always a solution drip!
Workaround:
As a hint, there is a problem with the Maxheap identity, open the profile redis.windows.conf, search for maxheap, and then directly specify the good content.
......
#
# Maxheap <bytes>
Maxheap 1024000000
.......
Then start again, OK, success.
Service Start Success Status
Start the Doc window for the Redis service without shutting down because the service needs to be executed all the time, close the service, and close the window directly.
Open a new doc window with your own client tool to test the command "Redis-cli.exe" with the following details: The example shows a basic read-write operation that sets the set Key->age,value->21,get age to get the value of key. ^_^
END
Precautions
- This version is Win64, so 32-bit Windows don't toss it.
- If there is an error running, the property compatibility permission (run as Administrator).
Detailed tutorial on installing Redis under Windows 64-bit