1. First download the appropriate installation package to the official website (http://www.mongodb.org/downloads)
Select the appropriate version to download according to your system.
2. According to the prompt to install, I installed in the C drive (I installed to the non-system disk, do not know what reason can not start), I installed in C:\Program Files\mongodb
3. Create the database directory and log directory (required).
4. Open the Command Line window (CMD), switch to C:\Program files\mongodb\server\3.0\bin, specify the database storage path, the command is as follows:
>>CD C:\Program Files\mongodb\server\3.0\bin
>>mongod--dbpath D:\MongoDB\data
The last line appears as
for27017
Access by browserhttp://localhost:27017/,shown below:
Indicates successful installation
5. Installing MongoDB as a Windows service
The command is as follows:
>>SC Create MongoDB binpath= "C:\Program files\mongodb\server\3.0\bin\mongod.exe--service--dbpath D:\MongoDB\ Data--logpath=d:\mongodb\logs\mongodb.log--logappend "
>>net Start MongoDB
Well, it's already installed here, but we can set the service to start automatically so that we don't have to enter net start MongoDB every time we start
Mouse Mobile Road "Computer" right-click Management
Find the appropriate service set to start automatically.OK, here's our tool to connect MongoDB, I'm using Mongovue 1.6.9
As configured, you can connect the MongoDB that we installed on this machine
MongoDB Windows environment Installation and configuration