MongoDb download installation (can not start to solve the problem)

1. official website to download
  Mongo official website to download
2. Start the installation
  select Custom all the way here
  
3. Change the path
  Here Insert Picture Description
  must make sure to download MogoDB is (need to create a directory on disk in MogoDB in a folder, select the time of installation this folder)  
  Here Insert Picture Description
4. Make sure that the path
  to ensure the Data Directory and Log Directory correct path   Here Insert Picture Description
5. Finally,
  attention! ! ! Do not check the bottom left of the red box! !
  Here Insert Picture Description
  After clicking next, install the installation, the last pop, click Ignor ignored like
  Here Insert Picture Description
  because the front is not checked Install MongoDB Compass, so Quguan network to find MongoDB Compass download and install
  Here Insert Picture Description
  and configure the environment variables
Here Insert Picture Description
Here Insert Picture Description

Unable to start MongoDB solutions to problems

1. not start
  to find MongoDB, right-click inside the service starts Here Insert Picture Description
  and then the error
  Here Insert Picture Description
2. Remove the service
  as administrator to open cmd, and then enter a default created when sc delete MongoDB MongoDB remove the installation service. (Note that the service name here, you want to replace the machine)
3. Re-create the service
  D:\MongoDb\bin\mongod.exe --dbpath "D:\MongoDb\data" --logpath "D:\MongoDb\log\mongodb.log" --install --serviceName "MongoDB" --logappend --directoryperdb
  to remember there is a space between the first and second command line command
  after command execution, once again found the service, and then right-click Start, OK
  of course, use the command net start mongo start the service is OK.          Here Insert Picture Description
  At the command line to test
Here Insert Picture Description
  this point, the perfect solution, each person's situation may be different, see more and more learning is king Oh

Published 25 original articles · won praise 3 · Views 605

Guess you like

Origin blog.csdn.net/weixin_45254208/article/details/103376306