Install and start Mongodb

Source: Internet
Author: User
Tags mongodb version
Mongodb installation and startup 1. First download the corresponding Mongodb version based on the corresponding operating system. This article describes the operations in the 64bitwindows7 environment. 2. decompress the package and place it in the specified position, such as E: dev. In the folder shown in, you can also customize other paths for storing data files. Create a logs folder in this path,

Mongodb installation and startup 1. First download the corresponding Mongodb version based on the corresponding operating system. This article describes the operations in the 64-bit Windows 7 environment. 2. decompress the package and place it in the specified position, such as E: \ dev. In the folder shown in, you can also customize other paths for storing data files. Create a logs folder in this path,

Install and start Mongodb

1. First, download the corresponding Mongodb version based on the corresponding operating system. This article describes the operation in the 64bit Windows 7 environment.

2. decompress the package and place it in the specified position, such as E: \ dev.



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

Create a logs folder in this path to store logs. Create a mongodb. log under logs (important ).

3. mongodb startup is similar to mysql startup. To avoid executing the batch file startup service every time, we create a Mongodb startup service here.

Run the following command in the Command window:

E:/dev/mongodb/bin/mongod -- install -- serviceName MongoDB -- serviceDisplayName MongoDB -- logpathE:/dev/mongodb/logs/mongodb. log-- Dbpath e:/dev/mongodb/data/db -- directoryperdb

Note: Some log paths must be fully written.

Here we will briefly introduce the parameters used and their meanings:

-- Install: install the MongoDB service.

-- ServiceName: the service name used to install the Windows Service

-- ServiceDisplayName: Service name displayed in Windows Service Manager



You can set the startup mode as needed.

By connecting to the default test database, the service is successfully started.

Cracked version), you can download to my resources, free of charge, do not point.

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.