NoSQL MongoDB database configuration in Windows

Source: Internet
Author: User

Apsaradb for MongoDB

Preface

I have always wanted to get started with the development of large data volumes. Recently I found NoSQL databases have significant advantages in relational databases, especially for processing massive data volumes.

There are other data that we will not talk about here. You can refer to the NoSQL database for more information.

See the download and installation of MongoDB and service configuration for NoSQL

Start preparation

First, download the mongodb database suitable for your computer. You can download it here.

Note that the maximum value of 32-bit windows logs is 2 GB.

We recommend that you use a 64-bit mongodb database for better use. Of course, it is okay to use a 32-bit database for learning.

PS: Because I have not installed a Linux system, if you need to configure Linux, go to the official website with a tutorial on it.

Related Links: install and configure MongoDB in Oracle Linux 5.9

Configuration

Mongodb uses C: \ data \ db as the data directory by default. You can create this directory or create other empty directories anywhere in the system. If you do not need the default directory, you must specify the data directory when starting mongodb.

Default Configuration

Decompress the downloaded file to c: \ data \ db

Start mongodb Database

Open cmd.exe to enter the mongodb decompression directory, and then execute:

$ Bin \ mongod.exe (ps: The information I read is written in this way, but I will report an error)

I use this

Command:

Cmd

Cd c: \ data \ db

Bin \ mongod.exe

Now, you should understand that you can directly start the database without such trouble.

Open the binfile folder and double-click mongod.exe.

Non-default path

You must specify the -- dbpath parameter.

$ Bin \ mongod.exe-dboath D: \ data \ db (ps: I wrote this on the materials, but I will report an error here)

I use this

Command:

Cmd

Cd d: \ data \ db

Bin \ mongod.exe

  • 1
  • 2
  • Next Page

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.