6717e8f1773e573e622e57d54b8d7d197dda7e4d
wiki/info/landscape/creating-ec2-mongodb-image-from-scratch.md
| ... | ... | @@ -29,6 +29,10 @@ In file ``/etc/mongod.conf`` comment the line |
| 29 | 29 | ``` |
| 30 | 30 | # bindIp: 127.0.0.1 # Listen to local interface only, comment to listen on all interfaces. |
| 31 | 31 | ``` |
| 32 | +and instead add |
|
| 33 | +``` |
|
| 34 | + bindIp: 0.0.0.0 |
|
| 35 | +``` |
|
| 32 | 36 | |
| 33 | 37 | so that MongoDB listens on all interfaces, not only localhost. Furthermore, set the ``directoryPerDB`` property to ``true`` and provide a replication set name using the ``replication.replSetName`` property. |
| 34 | 38 | |
| ... | ... | @@ -66,7 +70,7 @@ processManagement: |
| 66 | 70 | net: |
| 67 | 71 | port: 27017 |
| 68 | 72 | # bindIp: 127.0.0.1 # Listen to local interface only, comment to listen on all interfaces. |
| 69 | - |
|
| 73 | + bindIp: 0.0.0.0 |
|
| 70 | 74 | |
| 71 | 75 | #security: |
| 72 | 76 |