zoukankan      html  css  js  c++  java
  • Redis从入门到精通——Redis客户端

    Redis客户端

    一、命令行客户端

    [root@localhost.localdomain current]#pwd
    /usr/local/redis/current
    [root@localhost.localdomain current]#ll
    total 304
    -rw-rw-r--.  1 root root 157632 Mar 27  2018 00-RELEASENOTES
    -rw-rw-r--.  1 root root     53 Mar 27  2018 BUGS
    -rw-rw-r--.  1 root root   1815 Mar 27  2018 CONTRIBUTING
    -rw-rw-r--.  1 root root   1487 Mar 27  2018 COPYING
    drwxrwxr-x.  6 root root    192 Mar 17 10:22 deps
    -rw-rw-r--.  1 root root     11 Mar 27  2018 INSTALL
    -rw-rw-r--.  1 root root    151 Mar 27  2018 Makefile
    -rw-rw-r--.  1 root root   4223 Mar 27  2018 MANIFESTO
    -rw-rw-r--.  1 root root  20543 Mar 27  2018 README.md
    -rw-rw-r--.  1 root root  58766 Mar 27  2018 redis.conf
    -rwxrwxr-x.  1 root root    271 Mar 27  2018 runtest
    -rwxrwxr-x.  1 root root    280 Mar 27  2018 runtest-cluster
    -rwxrwxr-x.  1 root root    281 Mar 27  2018 runtest-sentinel
    -rw-rw-r--.  1 root root   7606 Mar 27  2018 sentinel.conf
    drwxrwxr-x.  3 root root   8192 Mar 17 10:47 src
    drwxrwxr-x. 10 root root    167 Mar 27  2018 tests
    drwxrwxr-x.  8 root root   4096 Mar 27  2018 utils
    [root@localhost.localdomain current]#src/redis-cli -h 127.0.0.1 -p 6379
    127.0.0.1:6379> 

      Redis的命令行客户端 redis-cli(Redis Command Line Interface)是 Redis 自带的基于命令行的客户端,主要用于与服务器端进行交互,可以使用该客户端操作 Redis的各种命令。

      切换到 /usr/local/redis/current 目录下,输入命令启动 Redis 的命令行客户端,有 3 种形式的启动命令。

      • src/redis-cli(不指定启动端口和不指定IP)
      • src/redis-cli -p 6379(指定启动端口)
      • src/redis-cli -h 127.0.0.1 -p 6379(指定启动端口和指定IP)

    二、可视化客户端

      2.1 Redis Desktop Manager(RDM)收费

      下载地址:https://rdm.dev

      2.2 TreeSoft 数据库管理系统 TreeDMS

      下载地址:http://www.treesoft.cn/index.html

    三、各个编程语言的客户端

      3.1 Redis 的 Java 编程客户端

      Jedis 是开源的,开源地址:https://github.com/redis/jedis

      3.2 Redis 的 PHP 编程客户端

      Predis 客户端、Phpredis 客户端

      3.3 Redis 的 Python 编程客户端

      redis-py 客户端、pyredis 客户端

      3.4 Redis 的 Go 编程客户端

      Redigo 客户端、Go-Redis 客户端

  • 相关阅读:
    冒泡排序
    Window中常见的dos命令
    spring boot 重定向
    阿里云轻量级服务器使用
    网络知识
    spring boot security 登出
    深入理解java虚拟机
    jsp内置对象与servlet的关系
    求一个有向无换图中,最长简单路径。动态规划问题15-1
    一些动态规划问题的java实现
  • 原文地址:https://www.cnblogs.com/zuoyang/p/14548187.html
Copyright © 2011-2022 走看看