1. official website to download
Mongo official website to download
2. Start the installation
select Custom all the way here
3. Change the path
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)
4. Make sure that the path
to ensure the Data Directory and Log Directory correct path
5. Finally,
attention! ! ! Do not check the bottom left of the red box! !
After clicking next, install the installation, the last pop, click Ignor ignored like
because the front is not checked Install MongoDB Compass, so Quguan network to find MongoDB Compass download and install
and configure the environment variables
Unable to start MongoDB solutions to problems
1. not start
to find MongoDB, right-click inside the service starts
and then the error
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.
At the command line to test
this point, the perfect solution, each person's situation may be different, see more and more learning is king Oh