Để kiểm tra cấu hình hiện tại của MongoDB, bạn có thể sử dụng getCmdLineOpts. Truy vấn như sau -
> db._adminCommand ({getCmdLineOpts:1});
Sau đây là kết quả -
{"argv":["mongod"], "đã phân tích cú pháp":{}, "ok":1}
Để kiểm tra cài đặt trực tiếp, bạn có thể sử dụng truy vấn bên dưới -
> db._adminCommand ({getParameter:"*"});
Sau đây là đầu ra &dấu trừ
{ "AsyncRequestsSenderUseBaton":đúng, "KeysRotationIntervalSec":7776000, "ShardingTaskExecutorPoolHostTimeoutMS":300000, "ShardingTaskExecutorPoolMaxConnecting":2, "ShardingTaskExecutorPoolMaxSize":-1, "ShardingTaskExecutorPoolMinSize":1, "ShardingTaskExecutorPoolRefreshRequirementMS":60000, "ShardingTaskExecutorPoolRefreshTimeoutMS" :20000, "TransactionRecordMinimumLifetimeMinutes":30, "adaptiveServiceExecutorIdlePctThreshold":60, "adaptiveServiceExecutorMaxQueueLatencyMicros":500, "adaptiveServiceExecutorRecursionLimit":8, "adaptiveServiceExecutorReservedThreads":-1, "adaptiveServiceExecutorRunTimeJitterMillis":500, "adaptiveServiceExecutorRunTimeMillis":5000, "adaptiveServiceExecutorStuckThreadTimeoutMillis":250, "allowSecondaryReadsDuringBatchApplication":true, "authSchemaVersion":5, "verifyMechanisms":["MONGODB-X509", "SCRAM-SHA-1", "SCRAM-SHA-256"], "bgSyncOplogFetcherBatc hSize ":13981010," clientCursorMonitorFrequencySecs ":4," cloudFreeMoosystemEndpointURL ":" https://cloud.mongodb.com/freemoosystem/mongo "," clusterAuthMode ":" undefined "," collectionClonerBatchSize ":-1," connPoolerHost "connPoolerHost":200, "connPoolMaxInUseConnsPerHost":2147483647 "connPoolMaxShardedConnsPerHost":200, "connPoolMaxShardedInUseConnsPerHost":2147483647 "createRollbackDataFiles":đúng, "createTimestampSafeUniqueIndex":false, "cursorTimeoutMillis":NumberLong (600000), "debugCollectionUUIDs":false, "diagnosticDataCollectionDirectorySizeMB" :200, "chẩn đoánDataCollectionEnabled":true, "chẩn đoánDataCollectionFileSizeMB":10, "chẩn đoánDataCollectionPeriodMillis":1000, "chẩn đoánDataCollectionSamplesPerChunk":300, "chẩn đoánDataCollectionSamplesPerogInterimUpdateresh":10, "vô hiệu hóa sai JoggingLink , "đã vô hiệu hóaSecureAllo catorDomains ":[]," enableElectionHandoff ":true," enableInMemoryTransactions ":false," enableLocalhostAuthBypass ":true," enableTestCommands ":false," failIndexKeyTooLong ":true," featureCompatibilityVersion ":{" version ":" 4.0 "}, "forceRollbackViaRefetch":false, "globalConnPoolIdleTimeoutMinutes":2147483647 "initialSyncOplogBuffer":"bộ sưu tập", "initialSyncOplogBufferPeekCacheSize":10000, "initialSyncOplogFetcherBatchSize":13.981.010, "internalDocumentSourceCursorBatchSizeBytes":4.194.304, "internalDocumentSourceLookupCacheSizeBytes":104.857.600, "internalGeoNearQuery2DMaxCoveringCells":16, "internalGeoPredicateQuery2DMaxCoveredCells":16, "internalInsertMaxBatchSize":64, "internalPromissShardOperationRetry":false, "internalQueryAlwaysMergeOnPrimaryShard":false, "internalQueryCacheEvictionRatio":10Feedbacks, internalQueryMeryCacheSize 5000:10, "internalQuery, InternalMeryCacheSize 5000" IntersectPerAnd":3, "internalQueryEnumerationMaxOrSolutions":10, "internalQueryExecMaxBlockingSortBytes":33.554.432, "internalQueryExecYieldIterations":128, "internalQueryExecYieldPeriodMS":10, "internalQueryFacetBufferSizeBytes":104.857.600, "internalQueryForceIntersectionPlans":false, "internalQueryIgnoreUnknownJSONSchemaKeywords":false, "internalQueryMaxScansToExplode" :200, "internalQueryPlanEvaluationCollFraction":0,3, "internalQueryPlanEvaluationMaxResults":101, "internalQueryPlanEvaluationWorks":10000, "internalQueryPlanOrChildrenIndependently":đúng, "internalQueryPlannerEnableHashIntersection":false, "internalQueryPlannerEnableIndexIntersection":đúng, "internalQueryPlannerGenerateCoveredWholeIndexScans":false, "internalQueryPlannerMaxIndexedSolutions":64 , "internalQueryProveredBlockingMergeOnMongoS":false, "internalQueryProveredMergingOnMongoS":false, "internalQueryS2GeoCoarsestLevel":0, "internalQueryS2 GeoFinestLevel ":23," internalQueryS2GeoMaxCells ":20," internalValidateFeaturesAsMaster ":true," javascriptProtection ":false," journalCommitInterval ":0," jsHeapLimitMB ":1100," localLogicalSessionToneityoutV:"verbos":30 0, "accessControl":{"verbosity":-1}, "command":{"verbosity":-1}, "control":{"verbosity":-1}, "executive":{"verbosity":-1}, "geo":{"verbosity":-1}, "index":{"verbosity":-1}, "network":{"verbosity":-1, "asio":{"verbosity" :-1}, "bridge":{"verbosity":-1}}, "query":{"verbosity":-1}, "replication":{"verbosity":-1, "heartbeats":{" verbosity ":-1}," rollback ":{" verbosity ":-1}}," sharding ":{" verbosity ":-1," shard ingCatalogRefresh ":{" verbosity ":-1}}," lưu trữ ":{" verbosity ":-1," recovery ":{" verbosity ":-1}," journal ":{" verbosity ":-1} }, "write":{"verbosity":-1}, "ftdc":{"verbosity":-1}, "tracking":{"verbosity":-1}, "transaction":{"verbosity":-1}}, "logLevel":0, "logicSessionRefreshMillis":300000, "maxAcceptableLogicalClockDriftSecs":NumberLong (31536000), "maxBSONDepth":200, "maxIndexBuildMemoryUsageMegabytes" maxAcceptableLogicalClockDriftSecs ":NumberLong (31536000)," maxBSONDepth ":200," maxIndexBuildMemoryUsageMegabytes ":500, maxLogSize, 1, maxLogSize, 1:"maxSessions":1000000, "maxSyncSourceLagSecs":30, "maxTransactionLockRequestTimeoutMillis":5, "migrateCloneInsertionBatchDelayMS":0, "migrateCloneInsertionBatchSize":0, "newCollectionsUsePowerPowerOmpts", "newCollectionsUsePower":trueCount, 10 ":3," numIn itialsynccolectionfindattempts ":3," numinitialsyncconnectattedtems ":10," numinitialsynclectionsteptitsattdatabasesatteds ":3," numinitialsyncopling ":3," opensslcodeconfig ":" "," ",", " oplogFetcherInitialSyncMaxFetcherRestarts":10, "oplogFetcherSteadyStateMaxFetcherRestarts":1, "oplogInitialFindMaxSeconds":60, "oplogRetriedFindMaxSeconds":2, "orphanCleanupDelaySecs":900, "periodicNoopIntervalSecs":10, "priorityTakeoverFreshnessWindowSeconds":2, "yên tĩnh":false, "rangeDeleterBatchDelayMS" :20, "rangeDeleterBatchSize":0, "recoveryFromOplogAsStandalone":false, "replBatchLimitOperations":5000, "replElectionTimeoutOffsetLimitFraction":0,15, "replIndexPrefetch":"uninitialized", "replWriter" :2000, "rollbackTimeLimitSecs":86400, "saslHostName":"DESKTOP-QN2RB3H", "saslServiceName":"mongodb", "saslauthdPath":"", "scramIterationCount":10000, "scramnterSHA256IterationCount" scripting 15000IterationCount "scramruptSHA256IterationCount":1000IterationCount " shardedConnPoolIdleTimeoutMinutes ":2147483647," bỏ quaCorruptDocumentsWhenCloning ":false," bỏ quaShardingConfigurationChecks ":false," sslMode ":" bị vô hiệu hóa "," sslWithholdClientCertificate ":false," startupAuthSchema, true, "syncAelningN sàng:" syncServiceExecutorRecursionLimit ":8," taskExecutorPoolSize ":1," tcmallocAggressionMemoryDecommit ":0," tcmallocEnableMarkThreadTemporarilyIdle ":false," tcmallocMaxTotalThreadCacheBytes ":Number of falseLong," Trafrevienter:Number, false "," Tragrevip:Number, false, trace. "transactionLifetimeLimitSeconds":60, "ttlMonitorEnabled":true, "t tlMonitorSleepSecs ":60," waitForSecondaryBeforeNoopWriteMS ":10," wiredTigerConcurrentReadTransactions ":128," wiredTigerConcurrentWriteTransactions ":128," wiuntTigerCursorCacheSize ":-100," wiredTime ", writePeri," wiredTime ":truePime / pre>