# for documentation of all options, see: # http://docs.mongodb.org/manual/reference/configuration-options/
# where to write logging data. systemLog: destination:file logAppend:true # 指定日志文件路径 path:/opt/mongodb/logs/mongod.log
# Where and how to store data. storage: # 指定数据库路径 dbPath:/opt/mongodb/db # 每次写入会记录一条操作日志 journal: enabled:true # engine: # wiredTiger:
# how the process runs processManagement: # 以守护进程的方式运行 fork:true# fork and run in background pidFilePath:/var/run/mongodb/mongod.pid# location of pidfile timeZoneInfo:/usr/share/zoneinfo
# network interfaces net: # 配置端口 port:37017 # 服务绑定地址 # 输入0.0.0.0,::绑定所有IPv4和IPv6地址,或者使用网络。bindIpAll设置 bindIp:0.0.0.0# Enter 0.0.0.0,:: to bind to all IPv4 and IPv6 addresses or, alternatively, use the net.bindIpAll setting.