1: First download the redis-x64-2.8.2400.zip.
Https://github.com/MSOpenTech/redis/releases/download/win-2.8.2400/Redis-x64-2.8.2400.zip
From the following address: https://github.com/MSOpenTech/redis/releases
2: After decompression, there are the following files:
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
Open redis.windows.conf File:
This is a configuration file that specifies the parameters for Redis. Such as:
Line 41st: Port 6379
Line 71st: Timeout 0
Line No. 454: # maxheap <bytes>
In the CMD Command Line window, navigate to the Unzip folder and enter the command Redis-server.exe redis.windows.conf
Error:
Workaround:
According to the prompt, is the maxheap identification problem, open the profile redis.windows.conf, search maxheap, and then directly specify the size of about 1Gb.
......
Line No. 454: # maxheap <bytes>
Maxheap 1024000000
.......
Start again, OK, success.
Service Start Success Status:
Start the cmd window of the Redis service without shutting it down because the service needs to be executed all the time, close the service, and close the window directly.
A new CMD window opens, with the client tool to test the command "Redis-cli.exe", the detailed operation is as follows. The example shows a basic read-write operation that sets the set Key->age,value->21,get age to get the value of key.
Windows installation Redis