文章摘要
文章描述了通过telnet连接到localhost的localhost:6379端口进行操作的过程。主要内容包括:使用telnet连接到Redis服务器,执行`flushall`清空所有数据,使用`keys`检查清空结果,以及通过telnet导入测试数据。文章重点展示了Redis客户端 telnet 连接的基本操作和数据导入流程。
[root@localhost tank]# telnet 127.0.0.1 6379 //telnet到redis
Trying 127.0.0.1…
Connected to 127.0.0.1.
Escape character is ‘^]’.
flushall //请空所有数据
+OK
keys * //查看已清空
*0
[root@localhost tank]# < test.json redis-load //导入数据
[root@localhost tank]# telnet 127.0.0.1 6379
Trying 127.0.0.1…
Connected to 127.0.0.1.
Escape character is ‘^]’.
keys * //已导入成功
*1
$4
test
© 版权声明
文章版权归作者所有,未经允许请勿转载。