"Node. JS Learning"--(7)--Install MongoDB

Source: Internet
Author: User
Tags create mongodb install mongodb mongodb download

Download and install MongoDB download

Reference: MongoDB official website http://www.mongodb.org/

Download Mongodb-win32-x86_64-2008plus-ssl-3.0.0-signed,msi

Tip: See how many bits the system is

WMIC OS get Osarchitecture

Installation

Reference: official website Tutorial http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/?_ga=1.253820552.1291971383.1425393574

All the way to the point, and specify the installation path


Specify data File Reference: http://www.cnblogs.com/lipan/archive/2011/03/08/1966463.html

New Data Catalog

F:\MongoDB\data


Specify Data Directory

Mongod–dbpath F:\MongoDB\data

Run effect

http://localhost:27017/

Verifying the installation

You can connect MongoDB with the command line as follows:

Indicates successful installation


Create a Local Service

Reference:

http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/?_ga=1.253820552.1291971383.1425393574

http://my.oschina.net/xiaomaoandhong/blog/62499


Create a log file

F:\MongoDB\log\mongodb.log

Creating a configuration file

F:\MongoDB\mongod.cfg

Dbpath=f:\mongodb\datalogpath=f:\mongodb\log\mongodb.log
Create a service

Sc.exe create MongoDB binpath= "\" F:\MongoDB\bin\mongod.exe\ "--service--config= \" F:\MongoDB\mongod.cfg\ "" Displayname= "MongoDB" start= "Auto"

Delete Service

Start the service

NET Startmongodb


"Node. JS Learning"--(7)--Install 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.