Navigation
This version of the documentation is archived and no longer supported.

Configuration File Settings and Command-Line Options Mapping

The following table maps the configuration file settings and the related mongod and mongos command-line options.

Configuration File Setting mongod and mongos Command-Line Options
auditLog.destination
auditLog.filter
auditLog.format
auditLog.path
cloud.monitoring.free.state
cloud.monitoring.free.tags
net.bindIp
net.bindIpAll
net.compression.compressors
net.ipv6
net.maxIncomingConnections
net.port
net.serviceExecutor
net.tls.allowConnectionsWithoutCertificates
net.tls.allowInvalidCertificates
net.tls.allowInvalidHostnames
net.tls.CAFile
net.tls.clusterCAFile
net.tls.certificateSelector
net.tls.clusterCertificateSelector
net.tls.clusterFile
net.tls.clusterPassword
net.tls.CRLFile
net.tls.disabledProtocols
net.tls.FIPSMode
net.tls.mode
net.tls.certificateKeyFile
net.tls.certificateKeyFilePassword
net.ssl.sslOnNormalPorts
net.unixDomainSocket.enabled
net.unixDomainSocket.filePermissions
net.unixDomainSocket.pathPrefix
net.wireObjectCheck  
operationProfiling.mode
operationProfiling.slowOpSampleRate
operationProfiling.slowOpThresholdMs
processManagement.fork
processManagement.pidFilePath
processManagement.timeZoneInfo
processManagement.windowsService.description
processManagement.windowsService.displayName
processManagement.windowsService.serviceName
processManagement.windowsService.servicePassword
processManagement.windowsService.serviceUser
replication.enableMajorityReadConcern
replication.localPingThresholdMs
replication.oplogSizeMB
replication.replSetName
security.authorization
security.clusterAuthMode
security.enableEncryption
security.encryptionCipherMode
security.encryptionKeyFile
security.javascriptEnabled
security.keyFile
security.kmip.clientCertificateFile
security.kmip.clientCertificatePassword
security.kmip.keyIdentifier
security.kmip.port
security.kmip.rotateMasterKey
security.kmip.serverCAFile
security.kmip.serverName
security.kmip.clientCertificateSelector
security.ldap.authz.queryTemplate
security.ldap.bind.method
security.ldap.bind.queryPassword
security.ldap.bind.queryUser
security.ldap.bind.saslMechanisms
security.ldap.bind.useOSDefaults
security.ldap.servers
security.ldap.timeoutMS
security.ldap.transportSecurity
security.ldap.userToDNMapping
security.redactClientLogData
security.sasl.hostName
security.sasl.saslauthdSocketPath
security.sasl.serviceName
security.transitionToAuth
setParameter
sharding.archiveMovedChunks
sharding.clusterRole
sharding.configDB
snmp.disabled
snmp.master
snmp.subagent
storage.dbPath
storage.directoryPerDB
storage.engine
storage.indexBuildRetry
storage.inMemory.engineConfig.inMemorySizeGB
storage.journal.commitIntervalMs
storage.journal.enabled
storage.syncPeriodSecs
storage.wiredTiger.collectionConfig.blockCompressor
storage.wiredTiger.engineConfig.cacheSizeGB
storage.wiredTiger.engineConfig.directoryForIndexes
storage.wiredTiger.engineConfig.journalCompressor
storage.wiredTiger.indexConfig.prefixCompression
systemLog.component.accessControl.verbosity
systemLog.component.command.verbosity
systemLog.component.control.verbosity
systemLog.component.ftdc.verbosity
systemLog.component.geo.verbosity
systemLog.component.index.verbosity
systemLog.component.network.verbosity
systemLog.component.query.verbosity
systemLog.component.replication.heartbeats.verbosity
systemLog.component.replication.rollback.verbosity
systemLog.component.replication.verbosity
systemLog.component.sharding.verbosity
systemLog.component.storage.journal.verbosity
systemLog.component.storage.recovery.verbosity
systemLog.component.storage.verbosity
systemLog.component.write.verbosity
systemLog.destination
systemLog.logAppend
systemLog.logRotate
systemLog.path
systemLog.quiet
systemLog.syslogFacility
systemLog.timeStampFormat
systemLog.traceAllExceptions
systemLog.verbosity

Removed MMAPv1 Options

Starting in version 4.2, MongoDB removes the deprecated MMAPv1 storage engine and the MMAPv1-specific configuration options:

Removed Configuration File Setting Removed Command-line Option
storage.mmapv1.journal.commitIntervalMs  
storage.mmapv1.journal.debugFlags mongod --journalOptions
storage.mmapv1.nsSize mongod --nssize
storage.mmapv1.preallocDataFiles mongod --noprealloc
storage.mmapv1.quota.enforced mongod --quota
storage.mmapv1.quota.maxFilesPerDB mongod --quotaFiles
storage.mmapv1.smallFiles mongod --smallfiles
storage.repairPath mongod --repairpath
replication.secondaryIndexPrefetch mongod --replIndexPrefetch

For earlier versions of MongoDB, refer to the corresponding version of the manual. For example: