MongoDB official: http://www.mongodb.org/
One, the installation under the Windows platform
1. Download MongoDB Database
2, set up the MONGODB program storage directory
After downloading the database, unzip it directly, for example save path to E:\mongo
3, set the data file storage directory
In e-drive resume a DB folder, the path is E:\db, when starting the database, the DataPath parameter points to this directory
4. Start MongoDB Service
Go to cmd console, execute command, E:\mongo\bin\mongod--dbpath=e:\db
The default listening port for the MongoDB server is 27017, and the other default HTTP port is 28017, which indicates that the service started successfully when you see both ports.
5. Set up MongoDB as Windows service boot
Create the E:\mongo\logs\mongodb.log file first, execute the command E:\mongo\bin\mongod--dbpath=e:\db--logpath=e:\mongo\logs\mongodb.log-- Install
6. Verifying Client connections
A new CMD is opened that executes E:\mongo\bin\mongo, and if the MongoDB shell version:@@@@ connecting To:test is returned, then the MongoDB database is connected.
Second, the installation under the Linux platform
Linux installation Monogodb is relatively simple, download MongoDB database, and then directly decompression can.
Ubuntu installation is relatively simple, the next chapter will write some of the specific steps of the MongoDB cluster construction.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
MongoDB Download Installation