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 客户端
分类:
Redis专题精讲
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具