Ubuntu 15.04 安裝 MongoDB 3.x

來源:互聯網
上載者:User

MongoDB官方文檔中沒有,但是實際上是可行的,需要如下步驟

1. 安裝key

apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10


2. 添加源

echo "deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list


3. 更新源

apt-get update

4. 安裝mongodb

apt-get install mongodb-org

5. 檢查狀態

# systemctl status mongod● mongod.service - LSB: An object/document-oriented database   Loaded: loaded (/etc/init.d/mongod)   Active: active (running) since 六 2015-10-03 11:35:34 CST; 2min 8s ago     Docs: man:systemd-sysv-generator(8)   CGroup: /system.slice/mongod.service           └─3365 /usr/bin/mongod --config /etc/mongod.conf10月 03 11:35:33 dean-Aspire-S3-391 systemd[1]: Starting LSB: An object/document-oriented database...10月 03 11:35:33 dean-Aspire-S3-391 mongod[3358]: * Starting database mongod10月 03 11:35:34 dean-Aspire-S3-391 mongod[3358]: ...done.10月 03 11:35:34 dean-Aspire-S3-391 systemd[1]: Started LSB: An object/document-oriented database.

安裝成功。


相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.