Docs HomeMongoDB Manual

db.serverCmdLineOpts()

db.serverCmdLineOpts()

Wraps the getCmdLineOpts database command.包装getCmdLineOpts数据库命令

Returns a document that reports on the arguments and configuration options used to start the mongod or mongos instance.返回一个文档,该文档报告用于启动mongodmongos实例的参数和配置选项。

See Configuration File Options, mongod, and mongos for additional information on available MongoDB runtime options.有关可用MongoDB运行时选项的更多信息,请参阅配置文件选项mongodmongos