- 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.
- Python入門很簡單
- 深入淺出RxJS
- Java Web開發就該這樣學
- Mastering C++ Multithreading
- Python3.5從零開始學
- HTML+CSS+JavaScript編程入門指南(全2冊)
- Bootstrap for Rails
- App Inventor 2 Essentials
- jQuery for Designers Beginner's Guide Second Edition
- Continuous Delivery and DevOps:A Quickstart Guide Second Edition
- HTML5移動Web開發
- Python 3快速入門與實戰
- Getting Started with Web Components
- Python無監督學習
- 打造流暢的Android App