First, download
Since redis official does not support the windows, so you need to download window on github version: Download . redis convention Edition version number (i.e., after the first decimal number) is even stable release version (e.g., 2.8,3.0), non-stationary odd version version (e.g., 2.7,2.9).
Second, the installation
Download redis archive decompression to the specified folder, run cmd to the path to the folder. RUN redis-server redis.windows.conf figure shows appear to run successfully.
Add in the system settings redis folder path, it can be used directly in redis cmd command line, setting the following effects:
You can see above you need to run redis redis-server service can use redis, if executed redis-server cmd window closed, redis service will close. So we want to redis service window, open cmd path to the folder where the file input redis redis-server.exe --service-install redis.windows.conf --loglevel verbose service installed successfully as shown below.
Third, the basic instruction
Uninstall service: redis-server --service-uninstall
Open service: redis-server --service-start
Stop Service: redis-server --service-stop or redis-cli shutdown (recommended)
Modify the port: redis-server --port 6379
Test Connection: redis-cli ping