参见官方
To start or using a config file, use one of the following forms:
mongod --config /etc/mongodb.confmongod -f /etc/mongodb.confmongos --config /srv/mongodb/mongos.confmongos -f /srv/mongodb/mongos.conf
Default: 27017
logpathDefault: None
logappendDefault: false
forkDefault: false
Set to true to enable a mode for that runs the process in the background. authDefault: false
dbpathDefault: /data/db/