码迷,mamicode.com
首页 > 数据库 > 详细

MongoDB配置文件mongod.conf

时间:2020-07-09 12:25:50      阅读:128      评论:0      收藏:0      [点我收藏+]

标签:auth   ddr   ipv4   lte   bin   pid   ica   配置文件   profiling   

# 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

标签:auth   ddr   ipv4   lte   bin   pid   ica   配置文件   profiling   

原文地址:https://www.cnblogs.com/jingsupo/p/13272565.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!