centos6.5 Installing MongoDB

Source: Internet
Author: User

Search front five files, due to MongoDB redhat foreign mirror access very slow, download and install the SuSE version and install:

mongodb-org-2.6.6-1.i686.rpm

mongodb-org-mongos-2.6.6-1.i686.rpm

mongodb-org-server-2.6.6-1.i686.rpm

mongodb-org-shell-2.6.6-1.i686.rpm

mongodb-org-tools-2.6.6-1.i686.rpm

Verify that the environment variable is in effect:

$ mongod-version
DB version v2.6.0
2014-04-14t02:53:01.082+0000 git version:1c1c76aeca21c5983dc178920f5052c298db616c
Run MongoDB:
Create Data Catalog
$ mkdir-p mongodb/data/db
Make sure that Mongod has read and write access to the data directory.
Run MongoDB (Specify the established data directory)
$ Mongod--dbpath/home/chuser/mongodb/data &
6. Verify that MongoDB is running properly

[Email protected] cache]# MONGO
MongoDB Shell version:2.6.6
Connecting To:test
Server has startup warnings:
2014-12-25t16:46:16.374+0800 [Initandlisten]
2014-12-25t16:46:16.374+0800 [Initandlisten] * * Note:this is a A-bit MongoDB binary.
2014-12-25t16:46:16.374+0800 [Initandlisten] * * [Builds bit] is limited to less than 2GB of data (or less with--journal ).
2014-12-25t16:46:16.374+0800 [Initandlisten] * * Note that the journaling defaults to off for the + and is currently off.
2014-12-25t16:46:16.374+0800 [Initandlisten] * * See Http://dochub.mongodb.org/core/32bit
2014-12-25t16:46:16.374+0800 [Initandlisten]

> show databases;show databases;
Admin (empty)
Local 0.078GB

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.