'How to connect mongo compass to aws ec2 instance
I am trying to connect mongo compass to aws ec2 instance db , which is throwing me an error "Mongodb not running on the provided host and port"
I tried by adding ip to bindip variable in "mongod.conf" file. Thanks in advance.
Solution 1:[1]
- Make sure bind ip is set to 0.0.0.0
- Make sure security group with port 27017 (your mongodb port) is added in your EC2 instance's security groups
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Shubham Waje |
