centos6.5 Installing MongoDB

Source: Internet
Author: User

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

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.