Adding to the window MongoDB service

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

 

Published 11 original articles · won praise 2 · Views 499

Guess you like

Origin blog.csdn.net/weixin_41530979/article/details/104877452