CMD start MongoDB Here is not said, relatively simple.
To install MongoDB as a Windows service on a 32-bit machine, you must turn on journal. Journal is similar to the redo.log of relational database, because MongoDB thinks that the open journal consumes memory, so it is not turned on on the 32-bit machine (64 bit is turned on by default).
The following is how to install the MongoDB Windows service as a configuration file startup.
Create a new mongod.cfg file and place it in the bin directory of the MongoDB installation file, as follows:
Journal=true
Logpath=d:\mongodb\data\log\mongodb.log
Dbpath=d:\mongodb\data\db
The first line indicates that journal is turned on.
The second line represents the path to the log file.
The third line represents the folder where the MongoDB database resides.
Run the Command window as an administrator:
Open the directory where the MongoDB installation file bin is located, and run the following command:
Mongod--config "D:\mongodb\bin\mongod.cfg"--install
After installation, the MongoDB service is started by default and needs to be started manually.
MongoDB is installed as a 32-bit Windows service