gpt4 book ai didi

redis - 无法访问 Redis(已启用集群模式)集群的端点

转载 作者:可可西里 更新时间:2023-11-01 11:23:44 25 4
gpt4 key购买 nike

我有 1 个 VPC - 在 1 个 EC2 实例(amazon ami)和 1 个 Redis(启用集群模式)集群下,带有 Auth(密码)和安全组 对所有 IP:Port 开放(仅用于测试) - 非常简单的设置。

telnet 在我的 EC2 实例的 6379 端口工作- 配置端点- 分片>每个节点端点

无法使用 Redis CLI 连接到 Redis 服务器 - 无论端点是 Config 还是 Node 端点都无关紧要;使用 v.5.0.4 的 Redis CLI;

请注意 - AWS ElastiCache Redis 集群(禁用集群)或单服务器节点,提供主终端节点,工作正常。仅当启用集群并获取 ConfigEndpoint/NodeEndPoints 时才会出现问题。

配置端点:

[root@ip-xx-xx-xx-xx src]# ./redis-cli -h clustercfg.xxxx.xxxxx.use1.cache.amazonaws.com  -p 6379

节点端点:

[root@ip-xx-xx-xx-xx src]# ./redis-cli -h xxxx-0001-0-01.xxxx.xxxxx.use1.cache.amazonaws.com  -p 6379

感谢任何帮助!

谢谢

最佳答案

在这个问题上花了几天时间后,我找到了解决方案 - 我们需要 stunnel 或任何其他创建 SSL 隧道的等效项,redis-cli 不支持 ssl 或 tls。

To access data from ElastiCache for Redis nodes enabled with in-transit encryption, you use clients that work with Secure Socket Layer (SSL). However, redis-cli doesn't support SSL or Transport Layer Security (TLS). To work around this, you can use the stunnel command to create an SSL tunnel to the redis nodes. You then use redis-cli to connect to the tunnel to access data from encrypted Redis nodes.

https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/in-transit-encryption.html

关于redis - 无法访问 Redis(已启用集群模式)集群的端点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55231851/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com