Software downloads
Download MongoDB Latest Package: Http://www.mongodb.org/downloads
Download MongoDB Visual interface, mongovue:http://download.csdn.net/detail/lovesummerforever/8036417
Software Installation
The MongoDB service-side installation steps are as follows:
1, adhere to the MONGODB specification, select your own disk creation folder, where I select the D disk, create the following directory structure
Copy Code code as follows:
D:\mongodb as the root directory of the installation
D:\mongodb\data Data Directory
D:\mongodb\data\db Database Directory
D:\mongodb\data\log Database log Directory
2, unzip the downloaded MongoDB of the latest compression package, copy the Bin folder into the MongoDB folder.
3, Mongo.exe is the shell client, and Mongod is the database itself, you can run under the DOS window.
4. Start process
Start the MongoDB service at a one-time.
Need to run under a DOS window, <c:\users\zhengqi-ff>mongod--dbpath=d:\mongodb\data\db
Integrating the MongoDB service into Windows
Like relational database MySQL, MySQL needs to start the MySQL service, and MongoDB needs to start the MongoDB database service. However, once the DOS boot MongoDB window is turned off, the service is stopped, and it is hard to start every time, and we can integrate the MongoDB service into the Windows service. Let the MongoDB service start up with the boot. The command looks like this:
To create a service:
Copy Code code as follows:
D:\mongodb\bin\mongod.exe--dbpathd:mongodb\data\db--logpath D:\mongodb\data\log\mongodb.log-- Install--servicename MongoDB
(PS: Remove the middle of the carriage return symbol, hereinafter)
Start the MongoDB service:
Copy Code code as follows:
To delete a service:
Copy Code code as follows:
D:\mongodb\bin\mongod.exe--dbpath d:mongodb\data\db--logpath D:\mongodb\data\log\mongodb.log-- Remove--servicename MongoDB
Turn off the MongoDB service:
Netstop MongoDB
We will see the MongoDB services we add in Windows services:
The next article is mainly about MongoDB setting up user access rights