1.redis在Linux下的远程连接:
$ redis-cli -h host -p port -a password
如何连接到主机为 127.0.0.1,端口为 6379 ,密码为 mypass 的 redis 服务上?
$redis-cli -h 127.0.0.1 -p 6379 -a "mypass" redis 127.0.0.1:6379> redis 127.0.0.1:6379> PING PONG