首页 > 其他 > 详细

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

时间:2020-12-24 16:59:03      阅读:524      评论:0      收藏:0      [点我收藏+]

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 *********

 

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

原文:https://www.cnblogs.com/hailin2018/p/14184920.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!