<span>mongodb的启动配置查询serverCmdLineOpts</span>
glc-test:PRIMARY> db.serverCmdLineOpts() { "argv" : [ "/home/work/mongodb/4.0.17/bin/mongod", "--config", "/home/work/mongodb/mongo_28042/etc/mongodb.conf" ], "parsed" : { "cloud" : { "monitoring" : { "free" : { "state" : "off" } } }, "config" : "/home/work/mongodb/mongo_28042/etc/mongodb.conf", "net" : { "bindIp" : "10.132.3.31,localhost", "maxIncomingConnections" : 10240, "port" : 28042, "serviceExecutor" : "adaptive" }, "operationProfiling" : { "mode" : "slowOp", "slowOpThresholdMs" : 100 }, "processManagement" : { "fork" : true, "pidFilePath" : "/home/work/mongodb/mongo_28042/tmp/mongo_28042.pid" }, "replication" : { "oplogSizeMB" : 65536, "replSetName" : "glc-test" }, "security" : { "authorization" : "enabled", "clusterAuthMode" : "keyFile", "keyFile" : "/home/work/mongodb/mongo_28042/etc/glc-test" }, "storage" : { "dbPath" : "/home/work/mongodb/mongo_28042/data", "directoryPerDB" : true, "engine" : "wiredTiger", "journal" : { "commitIntervalMs" : 100, "enabled" : true }, "wiredTiger" : { "collectionConfig" : { "blockCompressor" : "snappy" }, "engineConfig" : { "cacheSizeGB" : 4, "directoryForIndexes" : true, "journalCompressor" : "snappy" }, "indexConfig" : { "prefixCompression" : true } } }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/home/work/mongodb/mongo_28042/log/mongodb.log" } }, "ok" : 1, "operationTime" : Timestamp(1605579701, 1), "$clusterTime" : { "clusterTime" : Timestamp(1605579701, 1), "signature" : { "hash" : BinData(0,"Lx7GKPGdDiPL2zQcXKNUpTd/Pmw="), "keyId" : NumberLong("6856584343653974019") } } } glc-test:PRIMARY>
##########################################################################