MongoDB Installation and Startup

Source: Internet
Author: User
Tags mongodb version

MongoDB Installation and Startup

1. First download the corresponding MongoDB version according to the corresponding operating system, this document is described as 64bit windows7 environment operation.

2. Unzip the tarball into the location you specified, such as E:\dev.



In the folder shown, you can also customize other paths for placing data files.

Create a new Logs folder under this path to store the log. Create a new Mongodb.log (very important) under logs.

3.mongodb startup is a bit similar to MySQL startup, in order to avoid having to perform batch file startup services every time, we create a MongoDB startup service here.

In the command window, execute:

E:/dev/mongodb/bin/mongod--install--servicename mongodb--servicedisplayname mongodb--logpathe:/dev/mongodb/ Logs/mongodb.log --dbpath e:/dev/mongodb/data/db--directoryperdb

Note: The log part path is to be written in full.


Here is a brief introduction to the parameters used and their meanings:

--install: Installing MongoDB Service

--servicename: Service name to use when installing Windows services

--servicedisplayname: The name of the service that is displayed in Windows Service Manager



You can set the startup mode according to your own needs.

Connect to the default test library to indicate that the service started successfully.


MongoDB data is stored as a key-value pair, similar to the JSON data format.

Next will recommend a client tool Mongovue (cracked version), you can download to my resources, free of charge, not points.

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.