Mongodb3.6 Configuration Replica Set Cannot Start mongo After Setting Multiple net.bindIp

  mongodb, question

Mongo cannot be started after the mongodb configuration replica set has more than one net.bindIp set.

The screenshots reporting the error are as follows
图片描述

Mongod.conf is as follows

clipboard.png

The starting method is: systemctl startmongod.service.

The operating system is centos 7.2

There is no detailed error log in the screenshot you gave. After removing –fork, the exact error will be output. Please look at it first.
From experience, if you’re sure you haven’t touched anything else, take a look.172.27.0.15Is this IP address on your server?
ifconfig | grep inet
If you see it172.27.0.15There is no problem.