[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
© 版权声明
文章版权归作者所有,未经允许请勿转载。