无法远程登录到GCP MemoryStore [英] Unable to telnet to GCP MemoryStore

查看:116
本文介绍了无法远程登录到GCP MemoryStore的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在项目中创建了内存存储的实例,但是无法通过本地或Google Cloud Shell进行telnet/连接.在网上搜索时,我发现其他人被授予与我相同的主机IP,所以我有点困惑(10.0.0.3).在这里如何进行一些帮助将是巨大的.我必须在这里暴露一些东西吗?

I have created an instance of the Memory store in my project but I am unable to telnet / connect to it, either from my local or the Google Cloud Shell. Searching online, I see that other people have been granted the same host IP as mine so I am a little confused (10.0.0.3). Some assistance on how to proceed here would be great. Do I have to expose something here?

我已经完成以下工作:

  1. 在与内存存储相同的区域上重新创建我的VM
  2. 创建了内存存储的新实例(为我提供了新IP),但我仍然无法telnet

推荐答案

只要您位于同一项目,区域和网络中,就可以连接到Cloud MemoryStore.如果这些都不相同,您将无法连接.

You can connect to Cloud MemoryStore provided that you are in the same project, region and network. If any of these are different you will not be able to connect.

IP地址10.0.0.3是RFC 1918专用地址.这就是为什么您必须处于同一网络中才能进行连接的原因.另外,您还需要启用防火墙规则,以允许实例与Cloud Memorystore之间的流量.

The IP address 10.0.0.3 is an RFC 1918 private address. This is why you must be in the same network to be able to connect. Also you need to enable firewall rules to allow traffic between your instance and Cloud Memorystore.

此链接显示了如何从GCE实例连接到Cloud Memorystore.

This link shows you how to connect to Cloud Memorystore from a GCE instance.

连接到Redis实例

这篇关于无法远程登录到GCP MemoryStore的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆