First, the basic information
System Environment: Linux
MongoDB Latest version download:https://codeload.github.com/mongodb/mongo/zip/r3.2.0
second, the installation process
1. Unzip the MongoDB into the MONGO folder and compile it.
CD Mongoscons All
2. After compiling, review the compiled files.
Several commonly used files are:
MONGO MongoDB Client file Mongod MongoDB service mongoimport import mongoexport export Mongodump Export (binary) Mongorestore import (binary) mongooplog log file Mongostat Monitor service status
3. Create a new folder and name it Mongodb_simple
mkdir Mongodb_simple
Go to the Mongodb_simple folder and create a date log conf bin four subfolder.
CD Mongodb_simple mkdir Date mkdir Log mkdir conf mkdir Bin
Go to the Conf folder and set the MongoDB parameter mongodb.conf.
Touch Mongodb.confvim mongodb.conf
12345date= log/true
4. Copy the compiled binary files to the Bin folder.
CP .. /mongo-r3. 2.0/mongod bin/
Third, start the service
Start MongoDB Service
./bin/mongod-f conf/mongodb.conf
At this point, a simple MongoDB service is installed and the boot is complete.
MongoDB Getting Started Installation