installation files: http://www.aliyun.com/zixun/aggregation/11307.html > Official website http://www.mongodb.org/downloads
Select the file download for the corresponding system.
First, unzip the file.
Unzip the compressed package, create the folder MongoDB in D disk, and copy all the. exe files in the compressed package to the D:mongodb folder.
Second, the establishment of working directory.
1, the establishment of data storage directory D:\mongodb\data
2. Set up log file D:\mongodb\log\mongodb.log
Third, set system variables. To facilitate the management of MONGODB from the console, it is not necessary to enter the D:mongodb every time.
My Computer--attributes--advanced--environment variables--the path in the system variable, plus, D:\MongoDB, note the prefix with the semicolon. The following figure:
Third, start the MONGDB service.
Enter the Mongod.exe--dbpath=d:\mongodb\data into the console. The following figure:
The service is started and will normally appear as follows:
Enter http://localhost:27017/in the browser. will appear
You are are trying to access MongoDB on the native driver port. For HTTP diagnostic access, add 1000 to the port number
The surface service has been started.
Do not close the current console window, another console, enter MONGO.
Indicates that the connection to Mongdb has been successful.
Four, the MONGDB as a Windows service randomly started.
The "Mongo DB service has started successfully" prompt appears when you enter net start MongoDB in the console.
When you enter MONGO, you are connected to test. In My computer--management--services and applications, you can see that the MongoDB service has started successfully
Vi. Exception Handling
If you receive an error in the following illustration:
First look at the service startup does not, if the service is not started first, if the service has been started, it may be the last time the abnormal shutdown MONGO, resulting in the storage of data files are occupied, was locked. Simply remove the Mongod.lock file from the D:\MongoDB\data. Restart the service.
Original link: http://www.cnblogs.com/lsc183/archive/2012/08/16/mongodb.html
"Edit Recommendation"
MongoDB 2.0 official Release MongoDB 2.0 new features look at the compact Command mainstream NoSQL database all-round evaluation MongoDB teach you how to use MySQL to learn MongoDB MongoDB Setup and simple operation in Windows environment
"Responsible Editor: Pengfan TEL: (010) 68476606"
Original: MongoDB install configuration in Windows return to database home
share to: Favorites | printing | copying
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.