博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Install MongoDB
阅读量:7085 次
发布时间:2019-06-28

本文共 1282 字,大约阅读时间需要 4 分钟。

http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/?_ga=1.25950975.395536525.1415167309

 

(1)Import the public key used by package management system

The Ubuntu package management tools ensure package consistency and authenticity by requiring that 

distributors sign packages with GPG keys. Issue the following command to import the MongoDB public

GPG key:

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

(2)Create a list file for MongoDB

Create the /etc/apt/sources.list.d/mongdb-org-3.0.list list file using the following command:

echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list

(3)Reload local package database

Issue the following command to reload the local package database:

sudo apt-get update

(4)Install the MongoDB package

You can install either the lastest version of MongoDB or a specific version of MongoDB

   You can install the latest stable version of MongoDB

sudo apt-get install -y mongodb-org

   Or, install a specific release of MongoDB

  

sudo apt-get install -y mongodb-org=3.0.5 mongodb-org-server=3.0.5 mongodb-org-shell=3.0.5 mongodb-org-mongos=3.0.5 mongodb-org-tools=3.0.5

 

转载于:https://www.cnblogs.com/iwangzheng/p/4692187.html

你可能感兴趣的文章
使用 QuickBI 搭建酷炫可视化分析
查看>>
Python基础
查看>>
sublime text3使用笔记
查看>>
VirtuaNES.v0.97源码探究<5> 内存查看器
查看>>
我的友情链接
查看>>
Mysql基于FEDERATED存储引擎的远程表使用
查看>>
28. C# -- 抽象类和抽象方法
查看>>
archlinux安装go语言开发环境
查看>>
转存:常用正则表达式
查看>>
J2EE Comparator、Comparable的比较学习
查看>>
现在4位字母5数字的域名.com已经没有了 转让5数字域名
查看>>
Instant Radiosity
查看>>
多线程的互斥
查看>>
创建redis集群时出现no such fileto load -- rubygems问题的解决
查看>>
SCOM 2012系列④客户端代理安装
查看>>
构建SSH远程登录系统(笔记)
查看>>
Linux系统安装后的基础优化
查看>>
iphone开发 ---- TableView/ToolBar
查看>>
细谈软件需求分析过程:提取、抽象、升华
查看>>
影响网站关键词排名的因素
查看>>