zoukankan      html  css  js  c++  java
  • windos 启动redis服务端与客户端

    服务端:
    1-win+R 打开命令行
    2-cd至redis目录,例如 G:Redis6381
    3-输入 redis-server.exe redis.windows.conf
    观察是否如图1:至此,已成功;否则,继续进行如下操作:


    4-若启动redis出现
    [****] *****(当前日期)****** # Creating Server TCP listening socket *:6379: listen: Unknown error
    更改redis文件夹中的 redis.windows.conf
    #bind 127.0.0.1 去掉#

    重新执行命令行
    D: edis>redis-server.exe redis.windows.conf
    若仍报以下错误:
    # Creating Server TCP listening socket 127.0.0.1:6379: bind: No error
    按顺序输入如下命令就可以连接成功
    1. redis-cli.exe
    2. shutdown
    3. exit
    4. redis-server.exe redis.windows.conf
    后出现图1

    客户端:
    1. 使用默认IP地址和端口连接Redis数据库(IP地址:127.0.0.1,端口号6379)
    redis-cli -p 6379
    2. 使用指定IP地址和端口连接Redis数据库
    redis-cli -h 192.168.2.144 -p 6379

  • 相关阅读:
    Mysql任务调度
    使用 IntraWeb (18)
    使用 IntraWeb (17)
    替盛大代发的招聘启示
    使用 IntraWeb (16)
    使用 IntraWeb (15)
    使用 IntraWeb (14)
    使用 IntraWeb (13)
    使用 IntraWeb (12)
    使用 IntraWeb (11)
  • 原文地址:https://www.cnblogs.com/cowshed/p/11397695.html
Copyright © 2011-2022 走看看