The following table maps the configuration file settings and the related 下表映射了配置文件设置以及相关的mongod
and mongos
command-line options.mongod
和mongos
命令行选项。
--serviceExecutor
command-line option and the corresponding net.serviceExecutor
configuration option.--serviceExecutor
命令行选项和相应的net.serviceExecutor
配置选项。--noIndexBuildRetry
command-line option and the corresponding storage.indexBuildRetry
option.--noIndexBuilderRetry
命令行选项和相应的storage.indexBuildRetry
选项。MongoDB removes the deprecated MMAPv1 storage engine and the MMAPv1-specific configuration options:MongoDB删除了不推荐使用的MMAPv1存储引擎和特定于MMAPv1的配置选项:
storage.mmapv1.journal.commitIntervalMs | |
storage.mmapv1.journal.debugFlags | mongod --journalOptions |
storage.mmapv1.nsSize | mongod --nssize |
storage.mmapv1.preallocDataFiles | mongod --noprealloc |
storage.mmapv1.quota.enforced | mongod --quota |
storage.mmapv1.quota.maxFilesPerDB | mongod --quotaFiles |
storage.mmapv1.smallFiles | mongod --smallfiles |
storage.repairPath | mongod --repairpath |
replication.secondaryIndexPrefetch | mongod --replIndexPrefetch |
For earlier versions of MongoDB, refer to the corresponding version of the manual. 有关MongoDB的早期版本,请参阅相应版本的手册。For example:例如: