在Amazon EC2上访问Mongodb的问题 [英] Problem with access to Mongodb on Amazon EC2

查看:60
本文介绍了在Amazon EC2上访问Mongodb的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我还有一个问题要问你. 我有安装了mondodb的Amazon EC2实例. 除了一件事之外,它的工作原理非常好-我无法从外部(我的PC)访问(连接)它. 我认为安全组存在问题.这是某种默认防火墙. 有谁知道如何配置EC2实例以访问mongodb? 预先感谢.

i've got another question for you. I have Amazon EC2 instance with mondodb installed. It works great except one thing - i can't access (connect to) it from outside (my PC). I think the problem with Security Groups. It's some sort of default firewall. Does anyone know how to configure EC2 instance to have access to mongodb? Thanks in advance.

推荐答案

如果使用默认配置从外部访问它,则需要为端口27017添加安全组例外.对于安全组配置,请查看Amazon EC2文档.并且,如果您在Mongo上使用其他端口,请相应地更改安全组端口.

You need to add a security group exception for the port 27017 if you are using default config for you to access it from outside. For security group configuration, please check the amazon EC2 documentation. And if you are using a different port on Mongo, change the security group port accordingly.

-赛

这篇关于在Amazon EC2上访问Mongodb的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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