Installation of MongoDB under Windows

Source: Internet
Author: User
Tags install mongodb mongodb

Installation and configuration of MongoDB under Windows

Description: Because of learning the Python crawler framework, you need to install MongoDB, where the installation process is documented. (see a lot of articles on the web, thanks to the ancestors here.)

First, the official website: https://www.mongodb.com/download-center?jmp=nav#community, directly installs the 3.6.3 version of the MSI words will appear the card dead situation. (That's what I do)

Can be found in: http://dl.mongodb.org/dl/win32/x86_64 this link to find all versions of the installation package and compression package, I installed the version see:

Second, installation (decompression)

Create a MongoDB folder in the installation location, copy all the extracted files to the folder (my following):

Third, add environment variables

Add the installation directory to the system's path variable for later related operations

IV. Create data and log storage folders (must, otherwise not start MongoDB)

Create the Data folder in any directory to hold the database, create the logs folder to hold the log file

V. Create a system service

Open cmd in the bin directory of the installation directory

Input:

Mongod.exe--dbpath=d:\mongodb\data--logpath=d:\mongodb\logs\mongodb.log--install (change the DB directory and logs directory to your own, Note the \mongodb.log file behind the logs folder is required and will be created automatically)

Six, start test:

Open cmd, input command: net start MongoDB

After startup, open the browser to enter the following address, the following interface is started successfully

Close service: net stop MongoDB

MongoDB Common command line arguments

The basic configuration is complete.

the first time to write, the shortcomings of the excuse ..... ...

Installation of MongoDB under 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.