转:http://www.cnblogs.com/sweetchildomine/p/6397136.html
http://blog.csdn.net/wrian_ban/article/details/51085678
E:\Program Files\MongoDB\Server\4.0\bin\ mongod.conf文件
# --config "E:\Program Files\MongoDB\Server\4.0\bin\mongod.cfg" --service
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# Where and how to store data.
storage:
dbPath: E:\Program Files\MongoDB\Server\4.0\data\
journal:
enabled: true
# engine:
# mmapv1:
# wiredTiger:
# where to write logging data.
systemLog:
destination: file
logAppend: true
path: E:\Program Files\MongoDB\Server\4.0\log\mongod.log
# network interfaces
net:
port: 27017
bindIp: 0.0.0.0
#processManagement:
#security:
#operationProfiling:
#replication:
#sharding:
## Enterprise-Only Options:
#auditLog:
#snmp: