連接遠程 redis
//連接遠程 redis
redis-cli -h 192.168.1.103 -p 6379
//啟動集群模式需要增加 -c 參數
redis-cli -c -h 192.168.1.103 -p 6379
選擇庫0
select 0
查看索引中所有key
keys *
增加key和value
set test "test"
根據key獲取value值
get test
刪除指定key
del test
//連接遠程 redis
redis-cli -h 192.168.1.103 -p 6379
//啟動集群模式需要增加 -c 參數
redis-cli -c -h 192.168.1.103 -p 6379
select 0
keys *
set test "test"
get test
del test