Win 7 Installation Redis service "notes" _redis

Source: Internet
Author: User
Tags download redis redis install redis

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
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.