I’ve tried this syntax,
bindIp = [127.0.0.1, 192.168.184.155, 96.88.169.145]
But it’s not working at all saying unable to start mongod service. I’m using centos 7 and everything else works except when I try to use multiple IPs in the MongoDB config, then mongod service fails to start.
2
Answers
Can you try like this ,
bindIp = 127.0.0.1, 192.168.184.155, 96.88.169.145
Then restart Mongod
The config file is a YAML format, so config valures are given as
key: value
(notkey = value
)Try these ones:
or