Download and install and configure the system under Window
Download:
Official Website: https: //www.mongodb.com/
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:
View directory after a successful installation:
Its meaning is as follows:
mongoDB service not found:
Add the following directory to the system environment variables:
In software development, in general, divided into: c / s, b / s , collectively, are divided into: client and server.
Mongodb also divided into two ends:
Now, we have no way to directly use it? ? ?
Because we do not know where the data is to be stored? ? ?
data is used to store data,
logs is used to store log information,
etc is used to store configuration information.
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:
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.
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)
The default parameters may be omitted friends: