Win 7 Installation Redis service
Redis officially does not support Windows, only Microsoft Open Tech Group has developed a Win64 version on GitHub, the project address is: Https://github.com/MSOpenTech/redis
Win 7 install Redis service directory download Redis install Redis Extract File New batch file
Download Redis
Open the Https://github.com/MSOpenTech/redis address as shown:
Click Releases to select the appropriate version (take Redis-x64-3.0.501.zip as an example):
Install Redis Extract Files
Extract the downloaded compressed file into the installation directory, for example: I am installed in the E:\service\Redis-x64-3.0.501
New Batch File
1, in the Redis directory under the New Installation Redis service batch file Install.bat (double-click to install).
Redis-server.exe--service-install redis.windows.conf--loglevel verbose
2, in the Redis directory new open, shut down the service batch file Redis-toggle.bat.
@echo off
for/f "skip=3 tokens=4"%%i in (' sc query Redis ') do set "Zt=%%i" &goto:next
: Next
if/i "%zt% "= =" RUNNING "(
redis-server.exe--service-stop
echo Redis stopped.)
Else (
redis-server.exe--service-start
Echo Redis running now.)
)
Pause>nul
3, in the Redis directory under the new Uninstall Redis service batch file Uninstall.bat.
Redis-server--service-uninstall