我已经创建了一个准备去,谷歌云上的mongodb服务器使用默认参数。他们之间的一切工作正常(他们之间有通信,我可以添加数据库和集合),但是我无法连接到任何外部机器上的mongodb。谷歌云MongoDB外部IP不连接
我创建的谷歌云平台的防火墙规则,允许所有的conections(“0.0.0.0./0”)端口上27017
我运行的是COMAND
[email protected]:~$ mongo --host rs0/104.154.xx.xxx,173.255.xxx.xxx,104.197.xxx.xxx
[email protected]:~$ mongo --host rs0/104.154.xxx.xxx:27017,173.255.xxx.xxx:27017,104.197.xxx.xxx:27017
我有两个相同的错误。我不知道该怎么做才能解决这个问题。
connecting to: rs0/104.154.41.xxx,173.255.xxx.xxx,104.197.22.xxx:27017/test
2015-03-18T19:47:33.770-0500 starting new replica set monitor for replica set rs0 with seeds 104.154.41.xxx:27017,104.197.22.1xx:27017,xx.255.114.xxx:27017
2015-03-18T19:47:33.770-0500 [ReplicaSetMonitorWatcher] starting
2015-03-18T19:47:34.119-0500 changing hosts to rs0/mongo-db-jff3:27017,mongo-db-vnc4:27017 from rs0/104.154.41.246:27017,1xx.197.22.xxx:27017,173.255.1xx.xx:27017
2015-03-18T19:47:34.493-0500 getaddrinfo("mongo-db-vnc4") failed: Name or service not known
2015-03-18T19:47:34.511-0500 getaddrinfo("mongo-db-jff3") failed: Name or service not known
2015-03-18T19:47:34.512-0500 Error: connect failed to replica set rs0/104.154.xxx.xxx:27017,173.2xx.xxx.68:27017,104.197.22.xxx:27017 at src/mongo/shell/mongo.js:148
编辑:
这是我的防火墙设置:
这与Google-app-engine有什么关系? **为什么人们会标记如此多的Q值,这显然不是** GAE问题,而是与GCP中的其他许多产品有关,例如(我怀疑这里是)谷歌计算引擎?当你误解这样的问题时,你是否意识到你为我们提供免费支持有多难? – 2015-03-19 03:29:50