To make sure that MongoDB IP address is correctly set, perform the following steps:
This step is only required if the Back Office environment and the Indexing environment are hosted on different servers.
- Edit the following file:
As root user
/etc/mongod.conf
- In the bindIp parameter, modify or add the following line:
bindIp: 127.0.0.1
Into
bindIp: 0.0.0.0
Note: Ensure the line is not commented (remove '#') and the indentation is correct.
- Restart MongoDB by running the following command:
As root user
systemctl restart mongod
Unless the server is hosted by AWS, it is recommended to use the IP address of the current server instead of 0.0.0.0, as in the following example: bindIp: 192.123.4.56.