Problem with access to Mongodb on Amazon EC2

前端 未结 3 809
执笔经年
执笔经年 2021-01-31 22:42

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

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-31 23:35

    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.

    --Sai

提交回复
热议问题