This article describes the details of the Windows Platform installation MongoDB database, as follows
Official website: www.mongodb.org
Install--> set environment variable--> start
1. Download:
Download the 32-bit or 64-bit. msi file according to the system, download and double-click the file, and then install it as prompted,
Foreign web site to open the running speed is relatively slow. Now give a domestic download address. Http://www.jb51.net/softs/41751.html
2, set up the installation directory:
By clicking on the custom button to set up your installation directory, I will install it in the D:\MongoDB
3, set up MongoDB directory:
Create a new log (for log) and data (for D:\MongoDB) folders inside the
Create a new Mongodb.log file inside D:\MongoDB\log
4. Configure Environment variables
Add the Bin directory to the environment variable; D:\mongoDB\bin
Variable added successfully:
5, start the database:
Mongod--dbpath D:\MongoDB\data
The last line of information prompts the listener port to be 27017:
2016-07-01t21:41:22.951+0800 I Network [Initandlisten] waiting for connections on
Port 27017
Browser access: http://localhost:27017/Hint:
Create a new command Window enter: MONGO
At this point we are connected to the test database, press CTRL + C to exit
This indicates that the MONGODB has been installed and can be connected, but is it silly to be like this every time?
6. Configure the MONGO service side
Command Line Input:
Mongod--dbpath D:\MongoDB\data--logpath=d:\mongodb\log\mongodb.log--install
Parsing: Mongod--dbpath command is the location where the database file is created--logpath represents the path where the log file is stored
Open MongoDB later, only need MONGO to connect to the database
The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.