zoukankan      html  css  js  c++  java
  • winserver安装redis

    原文:

    https://www.cnblogs.com/xuzhiwei/p/4569315.html

    1.Redis本身不支持windows,但是有另外的团队在维护着一个windows下的版本

     

    2、下载地址:

    https://github.com/MSOpenTech/redis  #下载zip版

    2.8的版本在源码里面已经不包含windows下的执行文件,都移动到release里面去了,所以点击release去下载。

     

    3、下载解压后

     

    4、安装很简单,Windows Service Documentation.docx有详细说明。

    1)安装服务:

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

    2)卸载服务:

    redis-server --service-uninstall

    3)启动服务:

    redis-server --service-start

    注意:在windows 7 64位机器下,启动如果报错(其他环境下没试过)

    这个的解决方案是redis.windows.conf中加入:

    maxheap 1gb

    具体原因不知道为什么,可能跟我机器环境有关系(我设置成2gb和4gb都会报错)

    4)、停止服务:

    redis-server --service-stop

     

    5、指定服务名和端口号的安装:

    1)安装:redis-server --service-install --service-name redisService1 --port 10001

    注意:上面这种方式安装服务会,启动会出错(Redis service failed to start),所以安装的时候指定配置文件:

    redis-server --service-install redis.windows.conf --loglevel verbose --service-name redisService1 --port 10001

    2)卸载:

    redis-server --service-uninstall --service-name redisService1 --port 10001

    3)启动服务:

    方式1:

    redis-server --service-start --service-name redisService1

    方式2:

    services.msc

    找到redis 右键启动

    4)停止服务:

    redis-server --service-stop --service-name redisService1

  • 相关阅读:
    poj1068
    make&&gcc/g++ 生成 map file
    游戏系统开发笔记(九)——构建战斗系统
    归并排序
    士兵杀敌(四)
    ftp报错 200 port command successful. consider using pasv 425 failed to establish connection
    HDU 4649 Professor Tian
    如何将ASM中的数据文件复制到操作系统中
    Struts2 学习笔记 10 Result部分 part1
    交通管理系统
  • 原文地址:https://www.cnblogs.com/hanxiaohui/p/9419808.html
Copyright © 2011-2022 走看看