update mongodb install securing section

This commit is contained in:
Lee 2023-06-28 12:31:06 +01:00
parent 9b5d3ebbb7
commit 192e252c48

@ -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`.