S
Note: The native Environment-win7 SP1, install 3.6 version of MONGO will be stuck in a place, unable to continue, check the information after installing 3.4 version can be installed normally, small partners notice!
1: Download and install
: https://www.mongodb.com/download-center?jmp=nav#community
After downloading, click Install, you can choose a custom installation path.
Always Next
Configuration Data directory and log directory, and configuration files
This allows you to configure them
In order to run the MongoDB server from the command prompt, you must execute the Mongod.exe file from the bin directory of the MongoDB directory.
Connect to MongoDB
We can run the Mongo.exe command in the command window to connect to MongoDB and execute the following command:
F:\mongodb\bin>mongo.exe
Install MongoDB Service (install to boot start service)
By executing Mongod.exe, using the--install option to install the service, use the--config option to specify the previously created configuration file.
F:\mongodb\bin>mongod.exe--config "F:\MongoDB\mongod.cfg"--install
And then it's over.
You can now start the MongoDB service or close
MongoDB Background Management Shell
Start MONGO after opening the bin below the Mongo.exe, enter MONGO can enter the shell command mode, you can write JS code what
MongoDB installation Configuration