暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

Configuration File Settings and Command-Line Options Mapping

原创 flywiththewind 2022-06-27
569

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

mongod --auditDestination

mongos --auditDestination

auditLog.filter

mongod --auditFilter

mongos --auditFilter

auditLog.format

mongod --auditFormat

mongos --auditFormat

auditLog.path

mongod --auditPath

mongos --auditPath

cloud.monitoring.free.state

mongod --enableFreeMonitoring

cloud.monitoring.free.tags

mongod --freeMonitoringTag

net.bindIp

mongod --bind_ip

mongos --bind_ip

net.bindIpAll

mongod --bind_ip_all

mongos --bind_ip_all

net.compression.compressors

mongod --networkMessageCompressors

mongos --networkMessageCompressors

net.ipv6

mongod --ipv6

mongos --ipv6

net.maxIncomingConnections

mongod --maxConns

mongos --maxConns

net.port

mongod --port

mongos --port

net.tls.allowConnectionsWithoutCertificates

mongod --tlsAllowConnectionsWithoutCertificates

mongos --tlsAllowConnectionsWithoutCertificates

net.tls.allowInvalidCertificates

mongod --tlsAllowInvalidCertificates

mongos --tlsAllowInvalidCertificates

net.tls.allowInvalidHostnames

mongod --tlsAllowInvalidHostnames

mongos --tlsAllowInvalidHostnames

net.tls.CAFile

mongod --tlsCAFile

mongos --tlsCAFile

net.tls.clusterCAFile

mongod --tlsClusterCAFile

mongos --tlsClusterCAFile

net.tls.certificateSelector

mongod --tlsCertificateSelector

mongos --tlsCertificateSelector

net.tls.clusterCertificateSelector

mongod --tlsClusterCertificateSelector

mongos --tlsClusterCertificateSelector

net.tls.clusterFile

mongod --tlsClusterFile

mongos --tlsClusterFile

net.tls.clusterPassword

mongod --tlsClusterPassword

mongos --tlsClusterPassword

net.tls.CRLFile

mongod --tlsCRLFile

mongos --tlsCRLFile

net.tls.disabledProtocols

mongod --tlsDisabledProtocols

mongos --tlsDisabledProtocols

net.tls.FIPSMode

mongod --tlsFIPSMode

mongos --tlsFIPSMode

net.tls.mode

mongod --tlsMode

mongos --tlsMode

net.tls.certificateKeyFile

mongod --tlsCertificateKeyFile

mongos --tlsCertificateKeyFile

net.tls.certificateKeyFilePassword

mongod --tlsCertificateKeyFilePassword

mongos --tlsCertificateKeyFilePassword

net.ssl.sslOnNormalPorts

mongod --sslOnNormalPorts

mongos --sslOnNormalPorts

net.unixDomainSocket.enabled

mongod --nounixsocket

mongos --nounixsocket

net.unixDomainSocket.filePermissions

mongod --filePermissions

mongos --filePermissions

net.unixDomainSocket.pathPrefix

mongod --unixSocketPrefix

mongos --unixSocketPrefix

net.wireObjectCheck


operationProfiling.mode

mongod --profile

operationProfiling.slowOpSampleRate

mongod --slowOpSampleRate

mongos --slowOpSampleRate

operationProfiling.slowOpThresholdMs

mongod --slowms

mongos --slowms

processManagement.fork

mongod --fork

mongos --fork

processManagement.pidFilePath

mongod --pidfilepath

mongos --pidfilepath

processManagement.timeZoneInfo

mongod --timeZoneInfo

mongos --timeZoneInfo

processManagement.windowsService.description

mongod.exe --serviceDescription

mongos.exe --serviceDescription

processManagement.windowsService.displayName

mongod.exe --serviceDisplayName

mongos.exe --serviceDisplayName

processManagement.windowsService.serviceName

mongod.exe --serviceName

mongos.exe --serviceName

processManagement.windowsService.servicePassword

mongod.exe --servicePassword

mongos.exe --servicePassword

processManagement.windowsService.serviceUser

mongod.exe --serviceUser

mongos.exe --serviceUser

replication.enableMajorityReadConcern

mongod --enableMajorityReadConcern

replication.localPingThresholdMs

mongos --localThreshold

replication.oplogSizeMB

mongod --oplogSize

replication.replSetName

mongod --replSet

security.authorization

mongod --auth

mongod --noauth

security.clusterAuthMode

mongod --clusterAuthMode

mongos --clusterAuthMode

security.enableEncryption

mongod --enableEncryption

security.encryptionCipherMode

mongod --encryptionCipherMode

security.encryptionKeyFile

mongod --encryptionKeyFile

security.javascriptEnabled

mongod --noscripting

mongos --noscripting

security.keyFile

mongod --keyFile

mongos --keyFile

security.kmip.clientCertificateFile

mongod --kmipClientCertificateFile

security.kmip.clientCertificatePassword

mongod --kmipClientCertificatePassword

security.kmip.clientCertificateSelector

mongod --kmipClientCertificateSelector

security.kmip.connectRetries

mongod --kmipConnectRetries

security.kmip.connectTimeoutMS

mongod --kmipConnectTimeoutMS

security.kmip.keyIdentifier

mongod --kmipKeyIdentifier

security.kmip.port

mongod --kmipPort

security.kmip.rotateMasterKey

mongod --kmipRotateMasterKey

security.kmip.serverCAFile

mongod --kmipServerCAFile

security.kmip.serverName

mongod --kmipServerName

security.ldap.authz.queryTemplate

mongod --ldapAuthzQueryTemplate

security.ldap.bind.method

mongod --ldapBindMethod

mongos --ldapBindMethod

security.ldap.bind.queryPassword

mongod --ldapQueryPassword

mongos --ldapQueryPassword

security.ldap.bind.queryUser

mongod --ldapQueryUser

mongos --ldapQueryUser

security.ldap.bind.saslMechanisms

mongod --ldapBindSaslMechanisms

mongos --ldapBindSaslMechanisms

security.ldap.bind.useOSDefaults

mongod --ldapBindWithOSDefaults

mongos --ldapBindWithOSDefaults

security.ldap.servers

mongod --ldapServers

mongos --ldapServers

security.ldap.timeoutMS

mongod --ldapTimeoutMS

mongos --ldapTimeoutMS

security.ldap.transportSecurity

mongod --ldapTransportSecurity

mongos --ldapTransportSecurity

security.ldap.userToDNMapping

mongod --ldapUserToDNMapping

mongos --ldapUserToDNMapping

security.redactClientLogData

mongod --redactClientLogData

mongos --redactClientLogData

security.sasl.hostName

mongod --setParameter saslHostName=...

mongos --setParameter saslHostName=...

security.sasl.saslauthdSocketPath

mongod --setParameter saslauthdPath=...

mongos --setParameter saslauthdPath=...

security.sasl.serviceName

mongod --setParameter saslServiceName=...

mongos --setParameter saslServiceName=...

security.transitionToAuth

mongod --transitionToAuth

mongos --transitionToAuth

setParameter

mongod --setParameter

mongos --setParameter

sharding.archiveMovedChunks

mongod --moveParanoia

mongod --noMoveParanoia

sharding.clusterRole

mongod --shardsvr

mongod --configsvr

sharding.configDB

mongos --configdb

snmp.disabled

mongod --snmp-disabled

snmp.master

mongod --snmp-master

snmp.subagent

mongod --snmp-subagent

storage.dbPath

mongod --dbpath

storage.directoryPerDB

mongod --directoryperdb

storage.engine

mongod --storageEngine

storage.inMemory.engineConfig.inMemorySizeGB

mongod --inMemorySizeGB

storage.journal.commitIntervalMs

mongod --journalCommitInterval

storage.journal.enabled

mongod --journal

mongod --nojournal

storage.syncPeriodSecs

mongod --syncdelay

storage.wiredTiger.collectionConfig.blockCompressor

mongod --wiredTigerCollectionBlockCompressor

storage.wiredTiger.engineConfig.cacheSizeGB

mongod --wiredTigerCacheSizeGB

storage.wiredTiger.engineConfig.directoryForIndexes

mongod --wiredTigerDirectoryForIndexes

storage.wiredTiger.engineConfig.journalCompressor

mongod --wiredTigerJournalCompressor

storage.wiredTiger.indexConfig.prefixCompression

mongod --wiredTigerIndexPrefixCompression

systemLog.component.accessControl.verbosity

mongod --setParameter "logComponentVerbosity={accessControl: ... }"

mongos --setParameter "logComponentVerbosity={accessControl: ... }"

systemLog.component.command.verbosity

mongod --setParameter "logComponentVerbosity={command: ... }"

mongos --setParameter "logComponentVerbosity={command: ... }"

systemLog.component.control.verbosity

mongod --setParameter "logComponentVerbosity={control: ... }"

mongos --setParameter "logComponentVerbosity={control: ... }"

systemLog.component.ftdc.verbosity

mongod --setParameter "logComponentVerbosity={ftdc: ... }"

mongos --setParameter "logComponentVerbosity={ftdc: ... }"

systemLog.component.geo.verbosity

mongod --setParameter "logComponentVerbosity={geo: ... }"

mongos --setParameter "logComponentVerbosity={geo: ... }"

systemLog.component.index.verbosity

mongod --setParameter "logComponentVerbosity={index: ... }"

mongos --setParameter "logComponentVerbosity={index: ... }"

systemLog.component.network.verbosity

mongod --setParameter "logComponentVerbosity={network: ... }"

mongos --setParameter "logComponentVerbosity={network: ... }"

systemLog.component.query.verbosity

mongod --setParameter "logComponentVerbosity={query: ... }"

mongos --setParameter "logComponentVerbosity={query: ... }"

systemLog.component.replication.heartbeats.verbosity

mongod --setParameter "logComponentVerbosity={replication: {heartbeats: ... }}"

mongos --setParameter "logComponentVerbosity={replication: {heartbeats: ... }}"

systemLog.component.replication.rollback.verbosity

mongod --setParameter "logComponentVerbosity={replication: {rollback: ... }}"

mongos --setParameter "logComponentVerbosity={replication: {rollback: ... }}"

systemLog.component.replication.verbosity

mongod --setParameter "logComponentVerbosity={replication: ... }"

mongos --setParameter "logComponentVerbosity={replication: ... }"

systemLog.component.sharding.verbosity

mongod --setParameter "logComponentVerbosity={sharding: ... }"

mongos --setParameter "logComponentVerbosity={sharding: ... }"

systemLog.component.storage.journal.verbosity

mongod --setParameter "logComponentVerbosity={storage: {journal: ... }}"

mongos --setParameter "logComponentVerbosity={storage: {journal: ... }}"

systemLog.component.storage.recovery.verbosity

mongod --setParameter "logComponentVerbosity={storage: {recovery: ... }}"

mongos --setParameter "logComponentVerbosity={storage: {recovery: ... }}"

systemLog.component.storage.verbosity

mongod --setParameter "logComponentVerbosity={storage: ... }"

mongos --setParameter "logComponentVerbosity={storage: ... }"

systemLog.component.write.verbosity

mongod --setParameter "logComponentVerbosity={write: ... }"

mongos --setParameter "logComponentVerbosity={write: ... }"

systemLog.destination

mongod --logpath

mongos --logpath

mongod --syslog

mongos --syslog

systemLog.logAppend

mongod --logappend

mongos --logappend

systemLog.logRotate

mongod --logRotate

mongos --logRotate

systemLog.path

mongod --logpath

mongos --logpath

systemLog.quiet

mongod --quiet

mongos --quiet

systemLog.syslogFacility

mongod --syslogFacility

mongos --syslogFacility

systemLog.timeStampFormat

mongod --timeStampFormat

mongos --timeStampFormat

systemLog.traceAllExceptions

mongod --traceExceptions

systemLog.verbosity

mongod --verbose

mongos --verbose

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论