Install redis service in win7

Source: Internet
Author: User
Tags download redis
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.