Step1:
Download Https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.11.tgz The latest version, this is the linux64 bit download address, you can also go to the homepage of their own choice
Step2:
Extract the Tar vxf mongodb-linux-x86_64-2.4.11.tgz, after the decompression, go to the root (/) directory, create the data/db folder
Step3:
Enter the MongoDB folder after the decompression, go to the bin directory, run./mongod, found an error message: Please make at least 3379MB available in/data/db/journal or use- Smallfiles, the hint space is not enough
STEP4:
This time using the command:./mongod--smallfiles to start, if you continue to prompt enough space, you need to remove some compressed packets to free space
Start interface successfully
STEP5:
If you need to enter the MongoDB admin, you need to first open the bin directory of the MongoDB directory, and then execute the MONGO command file. The command is [Root@centos bin]#./mongo
STEP6:
You can access the MONDODB Web user interface on a port that is 1000 more than the MongoDB service port. For example: If your MongoDB run port uses the default 27017, you can access the Web user interface in port number 28017.