MongoDB installation deployment in Windows

Source: Internet
Author: User

MongoDB installation deployment in Windows


test Environment :

Microsoft Windows 7 (Ultimate Edition 64-bit)

MongoDB 3.0.2 (Windows 64-bit r2+)


installation files:

Mongodb-win32-x86_64-2008plus-ssl-3.0.2-signed.msi


Tips:

1. MongoDB does not support Windows XP and the following versions

2. installation file Http://www.mongodb.org/downloads

3. English Installation manual address http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/


Installation Deployment steps:

1. Create the following directory (modify according to the actual environment)

installation directory D:\DevTools\MongoDB

Data Catalog D:\DevTools\MongoDB\data\db

Log directory D:\DevTools\MongoDB\log


2. Execute the. msi file, select "Custom", select the installation directory


3. Start

After the installation is complete, open the cmd window, enter the D:\DevTools\MongoDB\bin directory, and execute the command:

Mongod.exe--logpath=d:\devtools\mongodb\log\log.txt--dbpath=d:\devtools\mongodb\data\db

Command parameter Description:

The--logpath parameter is the path to the set log file.

The--dbpath parameter is the set path for the database file.

All parameter options for the Mongod.exe command can be viewed through Mongod.exe--help


4. Install as a Windows service

Open the cmd window of Windows with Administrator privileges, enter the D:\DevTools\MongoDB\bin directory, and execute the command:

Mongod.exe--install--logpath=d:\devtools\mongodb\log\log.txt--dbpath=d:\devtools\mongodb\data\db

Command parameter Description:

The--install parameter is set to install as a server

Once set as a service, you can start or stop MongoDB in the form of a service by using the cmd (Windows CMD window with Administrator privileges Open) window.

net start MongoDB start MongoDB Service

net stop MongoDB Stop MongoDB service


5. Enter the shell environment interface

Enter the Sheelmongodb, enter the D:\DevTools\MongoDB\bin directory in the cmd window, input mongo.exe, you can enter the shell environment interface.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6B/6A/wKiom1Usx2WB_lH3AAFxMv5GFcM509.jpg "title=" Mongo.png "alt=" Wkiom1usx2wb_lh3aafxmv5gfcm509.jpg "/>


This article is from the "twists and turns ◇2015" blog, please be sure to keep this source http://huangfuff.blog.51cto.com/2632203/1632313

MongoDB installation deployment in 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.