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