1、命令
redis-cli -h host -p port -a password
2、参数
host:远程redis服务器host port:远程redis服务端口 password:远程redis服务密码(无密码的的话就不需要-a参数了)