MongoDB配置文件mongod.conf

Posted 朝闻道,夕死可矣。

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MongoDB配置文件mongod.conf相关的知识,希望对你有一定的参考价值。

# mongod.conf

# 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: /data/log/mongodb/mongod.log

# Where and how to store data.
storage:
  dbPath: /data/db/mongodb
  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: 27017
  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.

security:
  authorization: enabled

# operationProfiling:

# replication:

# sharding:

# Enterprise-Only Options

# auditLog:

# snmp:

 

以上是关于MongoDB配置文件mongod.conf的主要内容,如果未能解决你的问题,请参考以下文章

mongodb 配置文件

MongoDB学习笔记:配置文件

mongodb replication

MongoDB配置(持续学习更新ing……)

mongodb自带web性能监控

centos7怎么启动mongodb