MongoDB Basic Configuration Setup
MongoDB Basic Configuration setup Welcome to MongoDB DBA blog😊. Today we are going to know how to create a mongod.conf file and how to start the mongod server. Default Config File Location Operating System Configuration File Location Linux /etc/mongod.conf Windows <install directory>/bin/mongod.cfg Mac /usr/local/etc/mongod.conf File Format MongoDB configuration file use the YAML format, introduced in MongoDB 2.6 version. The 2.4 configuration file format remains for backward compatibility. YAML does not support tab characters for indentation: use spaces instead. Run server To configure mongod or mongos using a config file. Specify the config file with the --config or -f option. for example, mongod --config /etc/mongod.conf Command Line Configuration We can start mongod server with out config file from a co...