centos6.5安裝mongodb

來源:互聯網
上載者:User

標籤:

搜尋正面五個檔案,由於MongoDB的redhat國外鏡像訪問非常慢,下載安裝suse版本並安裝: 

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

驗證環境變數是否生效: 

$ mongod -version 
db version v2.6.0 
2014-04-14T02:53:01.082+0000 git version: 1c1c76aeca21c5983dc178920f5052c298db616c 
運行MongoDB:
建立資料目錄 
$ mkdir -p mongodb/data/db 
要確保mongod對資料目錄有讀寫權限。 
運行MongoDB(指定建立的資料目錄) 
$ mongod --dbpath /home/chuser/mongodb/data & 
6、驗證MongoDB是否正常運行 

[[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 32 bit MongoDB binary.
2014-12-25T16:46:16.374+0800 [initandlisten] ** 32 bit builds are limited to less than 2GB of data (or less with --journal).
2014-12-25T16:46:16.374+0800 [initandlisten] ** Note that journaling defaults to off for 32 bit 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安裝mongodb

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.