Redis安装[Windows]

一.  redis下载地址:  https://github.com/ServiceStack/redis-windows/tree/master/downloads 

  根据需要的下载对应版本*.zip即可.(我这里是win7x64)

二.使用

  1.  下载之后解压到你相应的目录下:

    

1 文件介绍:
2 redis-benchmark.exe #基准测试
3 redis-check-aof.exe # aof
4 redischeck-dump.exe # dump
5 redis-cli.exe # 客户端
6 redis-server.exe # 服务器
7 redis.windows.conf # 配置文件

  2.   简单启动redis:

      进入解压后的文件夹,shift+右键进入cmd;

    

    键入CMD命令: redis-server.exe redis.windows.conf 

    

    注: 此为服务启动成功的状态,关闭服务直接关掉cmd窗口即可;

   3.  简单测试状态,在此处再打开一个cmd窗口,键入 redis-cli.exe 

    

 

 三.  安装redis 服务

   1.在此文件夹下再打开一个cmd窗口,运行命令 : 

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

  

  

  2. 关闭服务端cmd窗口,刷新后在服务中启动redis服务;

   

  3. 启动redis-cli.exe 测试看看;

 

四. 其他相关

  1. 更多的redis命令,可以看官方网站或中文站,戳这里:http://www.redis.cn/commands.html

  2. Redis可视化工具,RedisDesktopManager,开源的,

   托管在github上,感兴趣的可以去看看:https://github.com/uglide/RedisDesktopManager

  3. 管理工具: RedisStudio: https://github.com/cinience/RedisStudio

  4. hosts设置:

1 set duapphosts=127.0.0.1        sqld.duapp.com
2 set redisduapphosts=127.0.0.1        redis.duapp.com
3 echo %duapphosts% >> C:\Windows\System32\drivers\etc\hosts
4 echo %redisduapphosts% >> C:\Windows\System32\drivers\etc\hosts

 

    

 

posted @ 2017-04-11 15:33  世间草木  阅读(325)  评论(0编辑  收藏  举报