mongodb run with config file code example
Example: perl mongodb conf location
Linux: /etc/mongod.conf
Windows: <install directory>/bin/mongod.cfg
macOS: /usr/local/etc/mongod.conf
Linux: /etc/mongod.conf
Windows: <install directory>/bin/mongod.cfg
macOS: /usr/local/etc/mongod.conf