Upload mongodb-linux-x86_64-2.4.9.tgz to App server directory:/USR/LOCAL/SRC (use the software package plus the bottom of the list for free)
Unzip MongoDB
#cd/USR/LOCAL/SRC
#tar-ZXVF mongodb-linux-x86_64-2.4.9.tgz
Mobile MongoDB Directory
#mv Mongodb-linux-x86_64-2.4.9/usr/local/mongodb
Go to the MongoDB directory
#cd/usr/local/mongodb
Create the Data directory, which is used to save the information.
#mkdir-P data/
Create a logs directory for saving logs.
#mkdir logs
Start MongoDB in the next stage mode
#/usr/local/mongodb/bin/mongod--dbpath=/usr/local/mongodb/data Logpath=/usr/local/mongodb/logs/mongodb.log-- Fork
Set boot up MongoDB
#echo "/usr/local/mongodb/bin/mongod--dbpath=/usr/local/mongodb/data--logpath=/usr/local/mongodb/logs/ Mongodb.log--fork ">>/etc/rc.local
If you are interested in this, please scan the QR code below for free for more details
Linux/centos MongoDB Installation