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

 

相关文章:

  • 2021-07-27
  • 2022-12-23
  • 2022-02-24
  • 2021-12-30
  • 2021-08-19
  • 2022-01-24
  • 2021-10-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-07
  • 2022-02-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案