zoukankan      html  css  js  c++  java
  • win7 安装redis服务

    Redis官方是不支持windows的,只是 Microsoft Open Tech group 在 GitHub上开发了一个Win64的版本,项目地址是: https://github.com/MSOpenTech/redis

    其实安装很简单,使用Microsoft Open Tech group开发的windows版本,直接安装就行,然后创建一个redis服务,so easy~

    1、下载 redis
    打开https://github.com/MSOpenTech/redis 地址如图:

    点击releases 选择相应的版本(以Redis-x64-3.2.100.zip为例):
    https://github.com/MSOpenTech/redis/releases/download/win-3.2.100/Redis-x64-3.2.100.zip
    https://github.com/MSOpenTech/redis/releases/download/win-3.2.100/Redis-x64-3.2.100.msi

    redis解压文件
    将下载的压缩文件解压到安装目录下, 例如:
    我安装在
    D:service edis
    目录下

    2、使用批处理文件安装redis服务

    2.1、在redis目录下新建安装redis服务批处理文件 install.bat(双击即可安装)。

    redis-server.exe --service-install redis.windows.conf --loglevel verbose

    2.2、在redis目录下新建开启、关闭服务批处理文件 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

    2.3、在redis目录下新建卸载redis服务批处理文件 uninstall.bat。

    redis-server --service-uninstall

  • 相关阅读:
    模拟算法(八)
    迭代算法(七)
    试探法是一种委婉的做法(六)
    贪心算法并不贪婪(五)
    各个击破的分治算法(四)
    充分利用自己的递归算法(三)
    一起学Spring之Web基础篇
    C# 利用AForge进行摄像头信息采集
    一起学Spring之注解和Schema方式实现AOP
    一起学Spring之AOP
  • 原文地址:https://www.cnblogs.com/zqifa/p/redis-1.html
Copyright © 2011-2022 走看看