Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 822 Bytes

mongodb-config.md

File metadata and controls

54 lines (40 loc) · 822 Bytes

Mongodb setups for remote connection

Running commands

sudo mongod --fork --config /etc/mongod.conf 

Config file

# /etc/mongod.config
# mongod.conf

# for documentation of all options, see:
#   http://docs.mongodb.org/manual/reference/configuration-options/

# Where and how to store data.
storage:
  dbPath: /var/lib/mongodb
  journal:
    enabled: true
#  engine:
#  mmapv1:
#  wiredTiger:

# where to write logging data.
systemLog:
  destination: file
  logAppend: true
  path: /var/log/mongodb/mongod.log

# network interfaces
net:
  port: 27017
  bindIp: 0.0.0.0

# how the process runs
processManagement:
  timeZoneInfo: /usr/share/zoneinfo

security:
  authorization: 'disabled'
#operationProfiling:

#replication:

#sharding:

## Enterprise-Only Options:

#auditLog:

#snmp: