- MongoDB Administrator’s Guide
- Cyrus Dasadia
- 157字
- 2021-07-02 15:47:45
How it works...
MongoDB allows passing command line parameters to mongod using a YAML file. In step 1, we are creating a config file called mongod.conf. We add all the previously used command line parameters from this chapter, into this config file in YAML format. A quick look at the file's content should make it clear that the parameters are divided into sections and relevant subsections. Next, in step 2, we start the mongod instance, but this time with just one parameter --config followed by the path of our config file.
As we saw in earlier recipes, although passing configuration parameters seems normal, it is highly advisable that one should use configuration files instead. Having all parameters in a single configuration file not only makes it easier in terms of viewing the parameters but also helps us programmatically (YAML FTW!) inspect and manage the values of these variables. This simplifies operations and reduces the chance of errors.
- DB2 V9權威指南
- Java程序設計(慕課版)
- Mastering JavaScript Object-Oriented Programming
- Java EE框架整合開發入門到實戰:Spring+Spring MVC+MyBatis(微課版)
- 看透JavaScript:原理、方法與實踐
- Python進階編程:編寫更高效、優雅的Python代碼
- MATLAB定量決策五大類問題
- WordPress 4.0 Site Blueprints(Second Edition)
- 愛上micro:bit
- Unity&VR游戲美術設計實戰
- 軟件測試綜合技術
- Android系統下Java編程詳解
- Delphi開發典型模塊大全(修訂版)
- IPython Interactive Computing and Visualization Cookbook
- Mudbox 2013 Cookbook