Configuration

Other topics

Starting mongo with a specific config file

Using the --config flag.

$ /bin/mongod --config /etc/mongod.conf
$ /bin/mongos --config /etc/mongos.conf

Note that -f is the shorter synonym for --config.

Parameters:

ParameterDefault
systemLog.verbosity0
systemLog.quietfalse
systemLog.traceAllExceptionsfalse
systemLog.syslogFacilityuser
systemLog.path-
systemLog.logAppendfalse
systemLog.logRotaterename
systemLog.destinationstdout
systemLog.timeStampFormatiso8601-local
systemLog.component.accessControl.verbosity0
systemLog.component.command.verbosity0
systemLog.component.control.verbosity0
systemLog.component.ftdc.verbosity0
systemLog.component.geo.verbosity0
systemLog.component.index.verbosity0
systemLog.component.network.verbo0
systemLog.component.query.verbosity0
systemLog.component.replication.verbosity0
systemLog.component.sharding.verbosity0
systemLog.component.storage.verbosity0
systemLog.component.storage.journal.verbosity0
systemLog.component.write.verbosity0
processManagement.forkfalse
processManagement.pidFilePathnone
net.port27017
net.bindIp0.0.0.0
net.maxIncomingConnections65536
net.wireObjectChecktrue
net.ipv6false
net.unixDomainSocket.enabledtrue
net.unixDomainSocket.pathPrefix/tmp
net.unixDomainSocket.filePermissions0700
net.http.enabledfalse
net.http.JSONPEnabledfalse
net.http.RESTInterfaceEnabledfalse
net.ssl.sslOnNormalPortsfalse
net.ssl.modedisabled
net.ssl.PEMKeyFilenone
net.ssl.PEMKeyPasswordnone
net.ssl.clusterFilenone
net.ssl.clusterPasswordnone
net.ssl.CAFilenone
net.ssl.CRLFilenone
net.ssl.allowConnectionsWithoutCertificatesfalse
net.ssl.allowInvalidCertificatesfalse
net.ssl.allowInvalidHostnamesfalse
net.ssl.disabledProtocolsnone
net.ssl.FIPSModefalse

Contributors

Topic Id: 5985

Example Ids: 20949

This site is not affiliated with any of the contributors.