Win 7 installing the Redis service
Redis is an open source API that is written in ANSI C, supports the web, can be persisted in memory, key-value databases, and provides multiple languages. But Redis officially does not support windows, but Microsoft Open Tech Group has developed a Win64 version on GitHub with the project address: Https://github.com/MSOpenTech/redis
Directory
- Win 7 installing the Redis service
- Directory
- Download Redis
- Installing Redis
- Unzip the file
- New Batch File
Download Redis
Open Https://github.com/MSOpenTech/redis Address
Click Releases to select the appropriate version (take redis-x64-3.0.501.zip as an example):
Installing Redis Unzip files
Unzip the downloaded compressed file into the installation directory, for example: I installed the E:\service\Redis-x64-3.0.501
New Batch File
1. Create a new Redis service batch file Install.bat (double-click to install) under Redis directory.
redis-server.exe --service-install redis.windows.conf --loglevel verbose
2. Create a new open/Close service batch file Redis-toggle.bat under Redis directory.
@echo offfor"skip=3 tokens=4"%%i in (‘sc query Redis‘) do set "zt=%%i" &goto :next:nextif /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, create a new Uninstall Redis service batch file Uninstall.bat.
redis-server--service-uninstall
Win 7 installing the Redis service