Installing MongoDB under Centos6.5

Source: Internet
Author: User

Mongo DB is a non-relational database (NOSQL) that is currently very popular in the IT industry, and its flexible data storage methods are highly favored by current it practitioners.

In this article, the installation steps of MongoDB in the centos6.5 system are described in detail.

Required Software
    • Mongodb-linux-x86_64-2.6.7.tgz (can be downloaded directly from MongoDB's website)
    • Centos6.5 system
Install to Folder
    • /usr/local under
Installation steps
  • Enter the/usr/local directory
  • Cd/usr/local

  • Create a MongoDB folder as the installation destination folder
    mkdir MongoDB

  • Unzip the file and move it to the MongoDB folder
    tar -zxvf mongodb-linux-x86_64-2.6. 7. tgz

  • Move all files under the extracted folder to the MongoDB folder
    CD mongodb-linux-x86_64-2.6. 7 MV */usr/local/mongodb

  • Create a Data folder to hold the file, create a logs file to store it
    cd/usr/local/mongodbmkdir  dataTouch logs

  • Start MongoDB Service
    CD bin. /mongod-dbpath=/usr/local/mongodb/data-logpath=/usr/local/mongodb/logs

Verify that the installation is successful

Open 127.0.0.1:27017, if you see "It looks like you were trying to access MongoDB over HTTP on the native driver port.", indicates that MongoDB installation was successful! After that, you will be happy to use the MongoDB Oh!

Installing MongoDB under Centos6.5

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.