mongodb的启动配置查询serverCmdLineOpts

Posted igoodful

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mongodb的启动配置查询serverCmdLineOpts相关的知识,希望对你有一定的参考价值。

 

 



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>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

##########################################################################



以上是关于mongodb的启动配置查询serverCmdLineOpts的主要内容,如果未能解决你的问题,请参考以下文章

Mongodb 3 查询优化

mongoDB配置

2016-11-16 MongoDB 配置步骤

MongoDB 数据库基本操作

MongoDB 数据库基本操作

MongoDB - 重新启动服务器后不同的查询执行时间