MongoDB 3.0版本 配置文件格式

配置文件的格式变了

是这样子的啦:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
systemLog:
destination: file
path: "/var/log/mongodb/mongodb.log"
logAppend: true
storage:
journal:
enabled: trueprocessManagement:
fork: true
net:
bindIp: 127.0.0.1
port: 27017
setParameter:
enableLocalhostAuthBypass: false

...

如果想要添加其他参数,请到这里查看吧:http://docs.mongodb.org/manual/reference/configuration-options/