1. Run as Administrator cmd
2. Enter mongod --config "E: \ MongoDB \ bin \ mongod.cfg" (which is the address of the configuration file) --install
3. Start / Stop Service net start / stop MongoDB
An error
The last line mp comments configuration file