[Node. js learning] -- (7) -- install Mongodb and node. jsmongodb

Source: Internet
Author: User
Tags create mongodb install mongodb

[Node. js learning] -- (7) -- install Mongodb and node. jsmongodb

 

Download and install mongodb

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

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

 

Knowledge: view the number of digits in the system

wmic os get osarchitecture

Install

Reference: Official website tutorial http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows? _ Ga = 1.253820552.1291971383.1425393574

All the way crazy, and specify the installation path


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

Create a data directory

F:\MongoDB\data


Specify data directory

mongod –dbpath F:\MongoDB\data

Running Effect

Http: // localhost: 27017/

 

Verify Installation

You can use the command line to connect to mongodb, as shown below:

The installation is successful.


Create a local service

Refer:

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

Create 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 a service

Start the service

net startMongoDB

 


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.