Configure the MongoDB Bind IP - AFS

Install AFS on Multiple Servers

Product
AFS
AFS_Version
7.11
Platform
RHEL
Category
Technical Notes

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 '#').

  3. Restart MongoDB by running the following command:

    As root user

    systemctl restart mongod.service

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