【问题标题】:GCP MemoryStore unaccessible from Compute Engine on same region无法从同一区域的 Compute Engine 访问 GCP MemoryStore
【发布时间】:2019-11-05 15:21:07
【问题描述】:

我遵循了以下两个教程:

唯一不同的是,我从第二个教程部署了 Redis 的代码,而不是从第一个链接。

如上所述"Connecting to a Redis instance"You can connect to the Redis instance from any Compute Engine VM instance located within the same project, region and network as the Redis instance.

我的服务:10.162.0.17 (nic0)

redis:10.169.12.195:6379

同一个项目,同一个地区,同一个区(a)

但是,当我这样做时:

user@my-service:~$ telnet 10.0.0.27 6379
Trying 10.0.0.27...

什么都没有发生..

【问题讨论】:

  • Redis 位于 10.169.12.195:6379 并且您正在尝试连接到 10.0.0.27 6379
  • 不,我尝试使用给定的 IP 进行连接。但是,给定链接中的telnet 10.0.0.27 6379 对我不起作用,我不明白为什么
  • 您为什么希望它在10.0.0.27 上工作?你在那个 IP 地址上有 redis 服务吗?
  • 我并不指望它能工作,只是为了测试一个简单的 ping,文档正在使用该 IP,而当我这样做时,它就不起作用了。如果我输入实例的 IP,我的服务确实可以工作,我也可以 ping。但是,文档中给定的地址不起作用,我不明白为什么.. 抱歉,如果这是愚蠢的,但我不明白
  • 文档中的地址是一个例子。您需要修改以匹配您的环境/配置。

标签: go google-cloud-platform redis google-compute-engine


【解决方案1】:

文档指定了命令telnet 10.0.0.27 6379。这是您需要针对您的环境进行修改的示例。

将命令改为:

telnet 10.169.12.195 6379

【讨论】:

  • 感谢约翰的回答!
猜你喜欢
  • 2020-03-31
  • 1970-01-01
  • 1970-01-01
  • 2022-06-28
  • 1970-01-01
  • 2017-06-03
  • 2023-01-18
  • 1970-01-01
  • 2018-11-21
相关资源
最近更新 更多