Redis is an open-source log-type, Key-Value database that supports network, memory-based persistence, and supports multiple programming languages. However, Redis does not officially support windows, but MicrosoftOpenTechgroup developed a Win64 version on GitHub. the Project address is
Windows 7 is an open-source log-type and Key-Value database written in ansi c language that supports network, memory-based persistence, and provides APIs in multiple languages. However, Redis does not officially support windows, but Microsoft Open Tech group developed a Win64 version on GitHub. the Project address is
Install redis in Windows 7
Redis is an open-source log-type and Key-Value database written in ansi c language that supports network, memory-based persistence, and provides APIs in multiple languages. But Redis official does not support windows, but Microsoft Open Tech group on GitHub developed a Win64 version, the project address is: https://github.com/MSOpenTech/redis
Directory
- Install redis in Windows 7
- Directory
- Download redis
- Install redis
- Decompress the file
- Create a batch file
Download redis
Open https://github.com/MSOpenTech/redis address
Click releases to select the corresponding version (Redis-x64-3.0.501.zipFor example ):
Install redis and decompress the file
Decompress the downloaded zip file to the installation directory, for example, I installed it in E: \ service \ Redis-x64-3.0.501
Create a batch file
1. create and install the redis service batch file install. bat in the redis Directory (double-click to install it ).
redis-server.exe --service-install redis.windows.conf --loglevel verbose
2. open and close the service batch file redis-toggle.bat in the redis directory.
@echo offfor /f "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. create and uninstall the redis service batch file uninstall. bat in the redis directory.
redis-server --service-uninstall