Win7 installing 32-bit MongoDB

Source: Internet
Author: User
Tags mongodb server


1), download MongoDB http://downloads.mongodb.org/win32/mongodb-win32-i386-2.4.5.zip


2), set the MongoDB directory to unzip it to D:\, and then rename it to MongoDB , Path is D:\mongodb 


3), set data file path in D: Disk to build a data folder, new DB folder in Data folder, Path D:\data\db 


4), start MongoDB service into CMD prompt console, D:\mongodb\bin\ Mongod.exe--dbpath=d:\data\db Mon Apr 08:50:54 [Initandlisten] waiting for connections on port 27017 MONGODB server default connection port : 27017 


5), randomly start MongoDB as Windows service first create a D:\mongodb\logs\mongodb.log file for storing MongoDB log files, and then install system services: D:\mongodb\bin\ Mongod--dbpath=d:\data\db--logpath=d:\mongodb\logs\mongodb.log--install   (if prompted: Error connecting to the Service Control Manager This error, you should run CMD as administrator find the command handler C:\Windows\System32\cmd.exe right: Run as Administrator) all output going to:d:\mongodb\ Logs\mongodb.log   Creating Service MongoDB.   Service creation successful.   Service can be started from the command line via ' net start ' MongoDB '. D:\>net start MongoDB   Mongo DB service has started successfully.   d:> Note: If you need to uninstall the service, execute the command: SC delete MongoDB 


6), Client connection verification opens a new cmd input: d:\mongodb\Bin\mongo, D:\mongodb\bin\mongo   MongoDB shell version:2.0.4   connecting to:test   


7), view MongoDB logs view D:\ Mongodb\logs\mongodb.log files, you can view or debug the operation of MongoDB. Http://localhost:27017/can see the following prompt: You is trying to access MongoDB on the native driver port. For HTTP diagnostic access, add the port number so that the MongoDB database service has successfully started. http://localhost:28017/Management


Win7 installing 32-bit MongoDB


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.