From 192e252c48c36146f247ae528710df9a6ed1f4ca Mon Sep 17 00:00:00 2001 From: Fascinated Date: Wed, 28 Jun 2023 12:31:06 +0100 Subject: [PATCH] update mongodb install securing section --- guides/ubuntu/pages/mongodb-install.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/guides/ubuntu/pages/mongodb-install.md b/guides/ubuntu/pages/mongodb-install.md index 0109548..8ef0a5c 100644 --- a/guides/ubuntu/pages/mongodb-install.md +++ b/guides/ubuntu/pages/mongodb-install.md @@ -160,10 +160,12 @@ security: sudo nano /etc/mongod.conf ``` -2. Find the `net` section and replace the `bindIp` line with the following: +2. Find the `net` section, we need to update the `bindIp` value, it should look like this: ```bash -bindIp: 0.0.0.0 +net: + port: 27017 + bindIp: 0.0.0.0 ``` 3. Save the file and exit the editor. You can do this by pressing `CTRL + X`, then `Y`, then `ENTER`.