MongoDB download and install the system configuration of the Window

Download and install and configure the system under Window
Download:
Official Website: https: //www.mongodb.com/
Here Insert Picture Description
Here Insert Picture Description

Note: On 32-bit systems, data files can not exceed a total of 32G, otherwise not be able to insert data, only when the test is used, the normal recommended use of 64-bit operating system.

Double-click the installation:
Here Insert Picture Description

Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description

View directory after a successful installation:
Here Insert Picture Description

Its meaning is as follows:
Here Insert Picture Description
Here Insert Picture Description
mongoDB service not found:
Here Insert Picture Description
Add the following directory to the system environment variables:
Here Insert Picture Description
Here Insert Picture Description

In software development, in general, divided into: c / s, b / s , collectively, are divided into: client and server.
Mongodb also divided into two ends:
Here Insert Picture Description
Now, we have no way to directly use it? ? ?
Because we do not know where the data is to be stored? ? ?
Here Insert Picture Description
data is used to store data,
logs is used to store log information,
etc is used to store configuration information.

Here Insert Picture Description
The interest of time, we can find a blog from the Internet:
http://www.cnblogs.com/jacksoft/p/6910709.html

This file is best not to use Notepad to open, the file will appear malformed phenomenon, the latter can not add system services inside:
Here Insert Picture Description
install it inside Windows service:
Note: To run as administrator command window.

mongod --config D:\mongoDBData\etc\mongo.conf --install --serviceName “MongoDB”

Note: added to the service in time, remember to close the connection of MongoDB.

Right click - you can start.
Then, you can use the command-line client to connect the service:

This is not convenient to a lot of it.
Method to start mongodb services
found MongoDB service in Computer Management inside - right click - you can start.
Here Insert Picture Description
Mongodb service connection
is now just successfully started the server, you also need to use the client to connect.
Syntax: mongo.exe ip address: port number (the default port number 27017) / database name (default connection test)
Here Insert Picture Description
The default parameters may be omitted friends:

Published 41 original articles · won praise 0 · Views 801

Guess you like

Origin blog.csdn.net/qestion_yz_10086/article/details/104476519