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