利用redis-cli建立连接
[root@mio-test ~]# redis-cli -h 192.168.16.140
选择redis
redis 192.168.16.140:6379> select 0 OK
查看已有的key
redis 192.168.16.140:6379> keys * (empty list or set)
清空所有key
redis 192.168.16.140:6379> FLUSHDB OK
利用redis-cli建立连接
[root@mio-test ~]# redis-cli -h 192.168.16.140
选择redis
redis 192.168.16.140:6379> select 0 OK
查看已有的key
redis 192.168.16.140:6379> keys * (empty list or set)
清空所有key
redis 192.168.16.140:6379> FLUSHDB OK