我遵循了以下两个教程:
- https://cloud.google.com/go/docs/tutorials/bookshelf-on-compute-engine
- https://cloud.google.com/memorystore/docs/redis/creating-managing-instances?authuser=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...
什么都没发生。.