Step1:
Download Https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.11.tgz The latest version, this is the linux64 bit, you can also go to the homepage own choice
Step2:
Unzip the tar vxf mongodb-linux-x86_64-2.4.11.tgz, and after extracting it, go to the root (/) directory and create the data/db folder
Step3:
Enter the MongoDB folder after the decompression, go to the bin directory, run./mongod, error message found: least 3379MB available in/data/db/journal or use-- Smallfiles, not enough space.
Step4:
This time use the command:./mongod--smallfiles to start, if you continue to prompt for insufficient space, then you need to delete some of the compressed package to free up space
Successful Start interface Step5:
If you need to get into MongoDB background management, you need to first open the bin directory under the MongoDB directory and then execute the MONGO command file. The command is [[email protected] bin]#./mongo
STEP6:
on ports more than 1000 of the ports of MongoDB services, you can access the Web user interface to Mondodb. For example: If your MongoDB run port uses the default of 27017, you can access the Web user interface in port number 28017.
centos6.5 Installing MongoDB