How to start mongod from configuration file in windows

I did not find mongod.conf file in the windows.
but there is another file called mongod.cfg in the this directory
C:\Program Files\MongoDB\Server\4.2\bin\mongod.cfg

is this the configuration file in windows
and how to start mongod from it I write
mongod --config mongod.cfg
and i get this message
Error opening config file: Is a directory
try ‘mongod --help’ for more information

thanks

Are you trying to start mongod on your local windows host?

The config file you picked up is default one which has many other params

You can prepare your own cfg using that as guide and start your own mongod

mongod --config your_own_configfile
Add the minimum required params

You are supposed to use IDE which has all required files,terminal,editor screens/areas for your testing/labs

Hi @Ahmed_Amer_Alkhuani_76736,

I would recommend you to go through the Chapter 1 first before you practice it locally so that you are familiar with the concepts.

You can also refer our docs : Configuration File Options. Here you can find some examples of configuration files.

~ Shubham