MongoDB is used in conjunction with. NET one (MongoDB installation on Windows 2003)

Source: Internet
Author: User
Tags install mongodb

MongoDB development has been to 2.6 version, since the acquisition of 100 million U.S. dollars in the wind, the development speed is much faster than before, because the previous period of time to use the cache, but also compared to MongoDB, we also feel that it is more suitable for non-relational big data storage, so the system statistical analysis of the function of it.

The installation of MongoDB is very simple, here first gives the author's installation environment: Windows 2003 Server, installed mongodb2.6 32-bit version

The installation of MongoDB is more and more simple and takes only 2 steps to complete.

First step: Download the latest version of 2.6, unzip to D-Disk mongodb-2.6

The second step: open cmd, enter the d:\mongodb-2.6, execute Mongod.exe-dbpath d:\mongodb-2.6\data, see the content of the tablets to calculate the installation is successful.

There is another way to start, which is how config is configured:

    1. In the Data folder to build a etc folder, create a new mongodb.conf file, the content is as follows

Dbpath=d:\mongodb-2.6\data #数据库路径

Logpath=d:\mongodb-2.6\data\logs\mongodb.log #日志输出文件路径 Logappend=true

Journal=true

Quiet=true

port=27017

2. Open cmd, enter d:\mongodb-2.6, execute

Mongod-config d:\mongodb-2.6\data\etc\mongodb.conf

The same effect.

Each run may be accidentally turned off, and always show that the cmd window is also very uncomfortable to look at, so you can use the command to install MongoDB as a service.

Mongod--dbpath d:\mongodb-2.6\data--servicename mongodbservice--servicedisplayname mongodbservice--install-- LogPath D:\mongodb-2.6\data\logs\mongodb.log

Actual

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.