Navigation

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.tag
net.bindIp
net.bindIpAll
net.compression.compressors
net.ipv6
net.maxIncomingConnections
net.port
net.serviceExecutor
net.ssl.allowConnectionsWithoutCertificates
net.ssl.allowInvalidCertificates
net.ssl.allowInvalidHostnames
net.ssl.CAFile
net.ssl.certificateSelector
net.ssl.clusterCAFile
net.ssl.clusterCertificateSelector
net.ssl.clusterFile
net.ssl.clusterPassword
net.ssl.CRLFile
net.ssl.disabledProtocols
net.ssl.FIPSMode
net.ssl.mode
net.ssl.PEMKeyFile
net.ssl.PEMKeyPassword
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
replication.secondaryIndexPrefetch
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.master
snmp.subagent
storage.dbPath
storage.directoryPerDB
storage.engine
storage.indexBuildRetry
storage.inMemory.engineConfig.inMemorySizeGB
storage.journal.commitIntervalMs
storage.journal.enabled
storage.mmapv1.journal.commitIntervalMs  
storage.mmapv1.journal.debugFlags
storage.mmapv1.nsSize
storage.mmapv1.preallocDataFiles
storage.mmapv1.quota.enforced
storage.mmapv1.quota.maxFilesPerDB
storage.mmapv1.smallFiles
storage.repairPath
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