MongoDB installation and booting with Windows

Source: Internet
Author: User
Tags install mongodb

1. Windows version Installation

(1), download MongoDB

URL Address: http://downloads.mongodb.org/win32/mongodb-win32-i386-1.8.1.zip

(2), set up MongoDB directory

unzip to the Mongdb folder below the D drive, the path is D:\MongDB

3) Set the data file path

Create a new logs and data folder inside D:\MongoDB

Create a new Mongodb.log file inside D:\MongoDB\logs

2, configure the MONGO service side:

Open cmd window: Enter the following command:

> D:
> CD D:\MongoDB\bin
> Mongod--dbpath D:\MongoDB\data--logpath=d:\mongodb\logs\mongodb.log--install


Then start MongoDB in the service

If it's Win7. Start cmd to start with the administrator.

3, Client Connection verification

Open a new cmd input: D:\mongodb\bin\mongo, if prompted below, then you can start the MongoDB tour:
D:\mongodb\bin>d:\mongodb\bin\mongo
MongoDB Shell version:1.8.1
Connecting To:test
>

4, view Log

D:\MongoDB\logs below the Mongodb.log

5. Supplement

C:\mongodb\bin>mongod--help

Windows Service Control Manager options:

--install Install MongoDB Service
--remove Remove MongoDB Service
--reinstall Reinstall MongoDB Service (Equivilant of Mongod
--remove followed by Mongod--install)
--servicename arg Windows service name
--servicedisplayname arg Windows service display name
--servicedescription arg Windows Service description
--serviceuser ARG user Name service executes as
--servicepassword arg password used to authenticate Serviceuser

MongoDB installation and booting with Windows

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.