输入命令:
redis-cli -h 127.0.0.1 -p 6379
redis 127.0.0.1:6379>
redis 127.0.0.1:6379> keys *
(error) ERR operation not permitted
redis 127.0.0.1:6379> select 1
(error) ERR operation not permitted
redis 127.0.0.1:6379[1]>
redis-cli -h 127.0.0.1 -p 6379 -a myRedis
127.0.0.1:6379> keys *
1) "j"
2) "jt"
redis 127.0.0.1:6379> select 1
OK
set jt 123
get jt