跳至内容

Not Able to connect with Redis-cluster

0

I have created the Redis-cache with the option Design by option --> After that i choose the Dev/test cluster

Creation method i choose Easy create.

But when i try to connect using the Endpoint i didn't get response. Also not getting any error.

You can see the Img.img

已提问 2 年前367 查看次数
3 回答
0

Hello.

Try specifying the port number explicitly as shown below.

redis-cli -c -h redis-endpoint.aps1.cache.amazonaws.com -p 6379

Also, do you allow the necessary communication in the inbound rules of the Redis Cluster security group?
The default port for Redis is 6379.
https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/accessing-elasticache.html
https://repost.aws/knowledge-center/elasticache-redis-cluster-fix-connection

专家
已回答 2 年前
专家
已审核 8 个月前
0

After change the cmd, still not connected.

Also i have checked all the ports.

when i create the Redis cluster in test mode, it's easily connected with the server.

redis

已回答 2 年前
0

The Easy create creation method in ElastiCache console has the default setting of In-transit encryption = Enabled. Therefore connections to TLS-enabled clusters should be done with --tls option in redis-cli, make sure the redis-cli is compiled with BUILD_TLS=yes as shown here.

Sample command:

redis-cli -c -h <endpoint> -p 6379 --tls

There is more detail available in this blog: https://repost.aws/knowledge-center/elasticache-connection-test

AWS
已回答 1 年前
专家
已审核 8 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。