redis连接:Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.


1、问题

连接远程redis的命令:

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

今天在服务器上使用上命令连接阿里云redis的时候,显示警告信息如下:

Could not connect to Redis at r-2zeclm4fdwos1xewcb.redis.rds.aliyuncs.com:3717: Connection timed out

 

2、解决方法:依次使用下面两个命令

$ redis-cli -h host
$ auth password
eg: 
redis-cli -h r-2zeclm4fdwos1xewcb.redis.rds.aliyuncs.com
auth *********

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM