【问题标题】:Connecting to Redis from localhost从 localhost 连接到 Redis
【发布时间】:2019-03-13 07:39:39
【问题描述】:

我在 AWS 上使用 ElastiCache for Redis。但是,我无法从 localhost 连接到 Redis。我在 AWS 上使用过端点。它总是显示连接超时。有没有办法让它工作?

【问题讨论】:

    标签: python amazon-web-services redis amazon-elasticache


    【解决方案1】:

    您应该确保的第一件事是连接 Elasticache Redis 的 VPC 安全组,允许自定义 TCP 流量从您的地址到端口号 6379(Redis 的默认值)。

    对我来说,连接超时问题是由于无法访问 Redis 集群所在的 VPC。

    【讨论】:

      【解决方案2】:

      检查您的弹性缓存集群的安全组。它应该允许来自 EC2 实例的端口 6379。您可以允许弹性缓存安全组中的 EC2 实例的安全组访问 6379 端口。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2020-03-13
        • 1970-01-01
        • 2015-03-26
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-01-17
        相关资源
        最近更新 更多