zoukankan      html  css  js  c++  java
  • [Redis]windows下redis的安装和启动

    官方的下载地址是: http://redis.io/download

    在win64一栏中能够看到redis原本是没有windows版本号的,windows版本号是Microsoft Open Tech团队开的

    给出了一个github的链接地址: https://github.com/MSOpenTech/redis


    下载:

    https://github.com/MSOpenTech/redis  页面的右下角有  Download Zip的字样,点击之后就能够下载源代码的zip包了。

    然后就是解压: 这里解压的文件夹是D:devsofts edis

    启动的程序在子文件夹 D:devsofts edisin elease 下,一个是32位。一个是64位的。


    配置和启动:

    在dos命令行环境下:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    D:devsofts edis>D:devsofts edisin elease edis-server.exe redis.conf
                    _._
               _.-``__ ''-._
          _.-``    `.  `_.  ''-._           Redis 2.6.12 (00000000/0) 64 bit
      .-`` .-```.  ```/    _.,_ ''-._
     (    '      ,       .-`  | `,    )     Running in stand alone mode
     |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
     |    `-._   `._    /     _.-'    |     PID: 3792
      `-._    `-._  `-./  _.-'    _.-'
     |`-._`-._    `-.__.-'    _.-'_.-'|
     |    `-._`-._        _.-'_.-'    |           http://redis.io
      `-._    `-._`-.__.-'_.-'    _.-'
     |`-._`-._    `-.__.-'    _.-'_.-'|
     |    `-._`-._        _.-'_.-'    |
      `-._    `-._`-.__.-'_.-'    _.-'
          `-._    `-.__.-'    _.-'
              `-._        _.-'
                  `-.__.-'
     
    [3792] 01 May 23:58:25.400 # Server started, Redis version 2.6.12
    [3792] 01 May 23:58:25.401 * The server is now ready to accept connections on po
    rt 6379

    命令行所在的文件夹是redis的根文件夹

    启动的命令是bin下exe命令。这里能够把

    1
    D:devsofts edisin elease

    加入到系统路径中去。


    測试:

    使用client程序訪问:

    1
    2
    3
    4
    5
    6
    D:devsofts edis>D:devsofts edisin elease edis-cli.exe -h 192.168.0.106 -
    6379
    redis 192.168.0.106:6379set admin orangleliu
    OK
    redis 192.168.0.106:6379get admin
    "orangleliu"


    后面開始学习简单的使用。python连接redis的操作。


  • 相关阅读:
    struts2之OGNL和struts2标签库和ValueStack对象
    struts2使用拦截器完成登陆显示用户信息操作和Struts2的国际化
    struts2的文件上传和文件下载
    jsp+servlet实现文件的上传和下载
    Ajax和JSON完成二级菜单联动的功能
    jxl的使用总结(java操作excel)
    Ajax异步验证登陆或者注册
    mydate97时间控件的使用
    Ckeditor一种很方便的文本编辑器
    搬家通知博文地址(将博客搬到CSDN)
  • 原文地址:https://www.cnblogs.com/cxchanpin/p/6815732.html
Copyright © 2011-2022 走看看