redis-cli -h host -p port -a password

例:

redis-cli -h 127.0.0.1 -p 6379 -a 123456

更多推荐

使用redis-cli命令客户端远程连接redis数据库