Database Manual / Self-Managed Deployments / Administration / Configuration & Maintenance / Configuration File Options

Self-Managed 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 Settingmongod and mongos Command-Line Options

auditLog.auditEncryptionKeyIdentifier

auditLog.compressionMode

auditLog.destination

auditLog.filter

auditLog.format

auditLog.localAuditKeyFile

auditLog.path

auditLog.schema

net.bindIp

net.bindIpAll

net.compression.compressors

net.ipv6

net.maxIncomingConnections

net.port

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

--sslOnNormalPorts
--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.clientCertificateSelector

security.kmip.connectRetries

security.kmip.connectTimeoutMS

security.kmip.keyIdentifier

security.kmip.port

security.kmip.rotateMasterKey

security.kmip.serverCAFile

security.kmip.serverName

security.kmip.activateKeys

security.kmip.keyStatePollingSeconds

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.retryCount

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.clusterRole

sharding.configDB

storage.dbPath

storage.directoryPerDB

storage.engine

storage.inMemory.engineConfig.inMemorySizeGB

storage.journal.commitIntervalMs

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.query.rejected.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

ChangeLog

Starting in version 6.1:
MongoDB always enables journaling. As a result, MongoDB removes the storage.journal.enabled option and the corresponding --journal and --nojournal command-line options.
Starting in version 5.0:

MongoDB removes the --serviceExecutor command-line option and the corresponding net.serviceExecutor configuration option.

For earlier versions of MongoDB, refer to the legacy documentation.