Win 7 installing the Redis service

Source: Internet
Author: User
Tags download redis install redis

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

Related Article

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.