无法从同一区域上的Compute Engine访问GCP MemoryStore

问题描述 投票:0回答:1

我遵循了以下两个教程:

唯一不同的是,我从第二个教程而不是从第一个链接部署了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...

什么都没有发生..

go google-cloud-platform redis google-compute-engine
1个回答
1
投票

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

将命令更改为:

telnet 10.169.12.195 6379
© www.soinside.com 2019 - 2024. All rights reserved.