How to successfully run mongodb service (mongod.exe)?
772
I'm having a problem getting MongoDB to run on my pc. I have Windows 7 32 bit. I already installed a hotfix that said the page I needed to install and it still won't let me start the service. I attach a screenshot of the windows console with what I get.
How to start the process, it is how you are doing it, it is not necessary to write mongod.exe, simply from the command line, inside the folder /bin:
mongod.exe
The error message caught my attention, remember that you must first create the folder where the data will be created
mddata\db
When the directory is created, execute the process again.
I have only used the 64-bit versions of Mongo 2.* and 3.*, and the only problem I have had is with the permissions of /data/db/, your message indicates that in the 32-bit versions it does not have the journaling property enabled by default .
storage.journal.enabled
Tipo: boolean
Default: true es sistemas de 64-bit, false en sistemas de 32-bit
How to start the process, it is how you are doing it, it is not necessary to write mongod.exe, simply from the command line, inside the folder
/bin
:The error message caught my attention, remember that you must first create the folder where the data will be created
When the directory is created, execute the process again.
I have only used the 64-bit versions of Mongo 2.* and 3.*, and the only problem I have had is with the permissions of
/data/db/
, your message indicates that in the 32-bit versions it does not have the journaling property enabled by default .Check the configuration document
You can create a mongod.cfg file
which will contain:
to use it when you start the process:
or you can try too
In the end I had the same problem and in this case it wasn't enabling the property
journaling
, it's specifying a different storage engine: