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