Problem with access to Mongodb on Amazon EC2

前端 未结 3 807
执笔经年
执笔经年 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

    Is your EC2 instance a Windows server by any chance? If so, in addition to EC2's Security Groups you also need to configure Windows Firewall to allow the incoming connection.

    Go To Administrative Tools, Windows Firewall with Advanced Security, and configure a new Rule that allows incoming connections on port 27017 (the default mongo port) or whatever port you've chosen.

提交回复
热议问题