zoukankan      html  css  js  c++  java
  • Redis 64 steps

    a memo for redis 64 operations

    start server in console:
    1. D:>cd redis64
    2. D:
    edis64>redis-server.exe  redis.windows.conf
                    _._
               _.-``__ ''-._
          _.-``    `.  `_.  ''-._           Redis 2.8.2101 (00000000/0) 64 bit
      .-`` .-```.  ```/    _.,_ ''-._
     (    '      ,       .-`  | `,    )     Running in stand alone mode
     |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
     |    `-._   `._    /     _.-'    |     PID: 6252
      `-._    `-._  `-./  _.-'    _.-'
     |`-._`-._    `-.__.-'    _.-'_.-'|
     |    `-._`-._        _.-'_.-'    |     http://redis.io
      `-._    `-._`-.__.-'_.-'    _.-'
     |`-._`-._    `-.__.-'    _.-'_.-'|
     |    `-._`-._        _.-'_.-'    |
      `-._    `-._`-.__.-'_.-'    _.-'
          `-._    `-.__.-'    _.-'
              `-._        _.-'
                  `-.__.-'
    
    [6252] 01 Dec 10:13:27.169 # Server started, Redis version 2.8.2101
    [6252] 01 Dec 10:13:27.170 * The server is now ready to accept connections on port 6379
    
    start server in services:
    1. D:
    edis64>redis-server --service-install redis.windows.conf --loglevel verbose
       [5660] 01 Dec 10:20:09.677 # Granting read/write access to 'NT AUTHORITYNetwork Service' on: "D:
    edis64" "D:
    edis64"
       [5660] 01 Dec 10:20:09.678 # Redis successfully installed as a service.
    
    2. D:
    edis64>redis-server --service-start
       [5632] 01 Dec 10:24:08.241 # Redis service successfully started.
    
    start client
    
    D:
    edis64>redis-cli.exe
    127.0.0.1:6379> set age 10
    OK
    127.0.0.1:6379> set foo bar
    OK
    127.0.0.1:6379> get age
    "10"
    127.0.0.1:6379> get foo
    "bar"
    127.0.0.1:6379> keys *
    1) "foo"
    2) "age"
    127.0.0.1:6379> keys foo
    1) "foo"
    127.0.0.1:6379> set foo std
    OK
    127.0.0.1:6379> get foo
    "std"
    127.0.0.1:6379> keys foo
    1) "foo"
    127.0.0.1:6379> exit
    
    D:
    edis64>
  • 相关阅读:
    pycharm 对mysql的可视化操作
    pycharm连接linux创建django工程
    linux上安装pycharm
    pycharm激活码
    Windows下安装pip
    migrate设置
    python相对目录的基本用法(一)
    pycharm设置连接github
    在shell终端操作oracle数据库的常用命令
    在windows中把一个文件夹打成war包
  • 原文地址:https://www.cnblogs.com/JasonLiao/p/redissteps.html
Copyright © 2011-2022 走看看