Concise summary of installation MongoDB in centos6.5 _mongodb

Source: Internet
Author: User
Tags mongodb port number

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.