1. Download 64-bit: Mongodb-win32-x86_64-enterprise-windows-64-2.6.4-signed.msi
2. Installation directory: Install the app under this directory: C:\MongoDB\
3. New directory: C:\MongoDB\data\db and C:\MongoDB\data\log
4. Install MongoDB: Enter cmd command interface operation
CD C:\MongoDB\bin
Mongod-dbpath "C:\MongoDB\data\db"
5. Test Connection
Open a new CMD window, enter the MongoDB bin directory, enter MONGO or Mongo.exe, the following message shows that the test passed, at this time we have entered the test database. Enter exit or CTRL + C to exit.
6, when the Mongod.exe is closed, Mongo.exe can not connect to the database, so every time you want to use MONGODB database to open the Mongod.exe program, so it is more troublesome, at this time we can install MongoDB as a Windows service. Or run cmd, go to the Bin folder and execute the following command
Console execution Command:c:\mongodb\bin>
Mongod--dbpath "C:\MongoDB\data\db"--logpath "C:\MongoDB\data\log\MongoDB.log"--install--servicename "MongoDB"
Here--mongodb.log is the start of the log file,--servicename "MongoDB" service named MongoDB.
Then start MongoDB service > c:\mongodb\bin>net start MongoDB
7. Shutting down services and deleting processes
> C:\mongodb\bin>net Stop MongoDB (Close service)
>c:\mongodb\bin>mongod--dbpath "C:\MongoDB\data\db"--logpath "C:\MongoDB\data\log\MongoDB.log"--remove-- ServiceName "MongoDB"
(Delete, note not--install.)
installation is so simple. You can then test by command. Follow-up will record the common commands you have learned.
Make a little progress every day and always keep a record of him.
MongoDB installed on the WINDOWS64