Configure the MongoDB bind IP - Fluid Topics - 4.0

Install Fluid Topics on Multiple Servers

Operating system
Debian
Category
Technical Notes
Audience
public
Version
4.0

This step is only required if the Back Office environment and the Indexing environment are hosted on different servers.

To make sure that MongoDB IP address is correctly set, perform the following steps:

  1. Edit the following file:

    As root user

    /etc/mongod.conf

  2. 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.

  3. 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.