1, the first step is to download from the official website to match their operating system installation files or compressed files;
2, just find a folder to unpack the installation files, and then in the C packing directory to create a new folder named MongoDB;
3, will open the file just installed, the Bin folder copy to the C-packing directory of the MongoDB folder;
4, in the D disk to build a MongoDB folder, in the folder to build data and log folder, respectively, the Data folder under the DB folder as a database file storage location, under the log folder to create a Mongod.log file;
5, the start of MongoDB can be configured to the system environment, so that directly in the command line can be used;
6, open the command line, enter Mongod--dbpath D:\mongodb\data\db, connect the database to the data file storage;
7, open a new DOS window, direct input MONGO, will start to connect;
8. Add MongoDB as a window service, enter Mongod--dbpath D:\mongodb\data\db--logpath D:\mongodb\log\mongodb.log--logappend on the command line-- ServiceName MongoDB--auth--install
9. Directly open the command line for administrator rights to enter net start MongoDB Open service
Installing MongoDB Steps