Introduction and installation of the Windows MongoDB Basic gameplay series

Source: Internet
Author: User
Tags create mongodb

Why is MongoDB? Yesterday began to involve a more unfamiliar field, search the relevant learning materials, can not find a good solution, last night went back to the bad supplement some official website documents (the best information is the official document of the knowledge). As for the specific why I do not have a voice, knowledge borrowed a word to describe. Welcome to the MongoDB manual! MongoDB is a open-source, document-oriented database designed for ease of development and scaling. Instructions before installation MongoDB can be used for most platforms (as I know of Linux,windows,os X), support 32/64 bit. Since I am using the WINDOW7 64-bit system here, let me briefly introduce some of the relevant knowledge points that I have learned in the study of Evil (only for their own learning and communication, inevitably error, please advise, learn please refer to the Official document Http://http://docs.mongodb.org/manual)。 Windows7 install Mongodbmongodb at the beginning of version 2.2 does not support Windows XP (I think now with XP should also be a part of the feelings of people, I just a craftsman only), Windows Server8 r2,64 bit, 32-bit, Only 32-bit support database is less than 2GB.
① detection is how many bits of the system (method is not limited to this)
WMIC OS get Osarchitecture
② Download MongoDB
Http://www.mongodb.org/downloads
③ Installing MongoDB
When installing, choose the path you installed, I chose D:\mongodb
④ Create a data path a log file
The data path I created here is: D:\testMongoDB\data
The log file path I created here is: D:\testMongoDB\log\mongo.log
⑤ Associated Data path
Create a data path under D:\mongodb\bin
Mongod.exe--dbpath D:\testMongoDB\data
Create a log path under D:\mongodb\bin
Mongod.exe--logpath D:\testMongoDB\log\mongo.log
⑥ can now use MongoDB, for a happy play (MongoDB 2.6.0), need to manually configure a Windows service for MongoDB, create a successful regret prompt: [SC] CreateService success
Before creating a service, you need to create a profile: mongod.cfg, the path I created is "D:\mongodb\mongod.cfg".
The content of Mongodb.cfg is (according to your actual situation):
Dbpath= d:\testmongodb\datalogpath= D:\testMongoDB\log\mongo.log
To create a MongoDB service:
Sc.exe create MongoDB binpath= "\" D:\mongodb\bin\mongod.exe\ "--service--config=\" D:\mongodb\mongod.cfg\ "" Displayname= "MongoDB" start= "Auto"Delete MongoDB
Common error analysis ① check for path problems before checking for errors, whether the path corresponds to a file exists
②net Start MongoDB Service does not respond to control
Config path is correct, the corresponding. cfg file exists, and the path is correct, configure the error message can refer to the error log error message
③[SC] CreateService Failure 1072: The specified service was marked for deletion.
This error is caused by the unfamiliar creation of the window service, I opened the service window to view the service status before the service was deleted, and the window was re-created. Friendly reminder:This article is only for the study of communication use, unavoidably wrong, please leave a message correct, convenient for me to modify, manual automatic reprint to keep the original source, to avoid the wrong full-screen flying, finally, the detailed solution also please refer to the official documentation, this article only as a supplement.

This article original blog address: http://www.cnblogs.com/unofficial official website address: www.pushself.com

Introduction and installation of the Windows MongoDB Basic gameplay series

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.