博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Linux - CentOS 7 yum方式快速安装MongoDB
阅读量:6689 次
发布时间:2019-06-25

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

一、安装环境及配置yum

# more /etc/redhat-release CentOS Linux release 7.2.1511 (Core) # vi /etc/yum.repos.d/mongodb-org-3.2.repo [mongodb-org-3.2] name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/ gpgcheck=1 enabled=1 gpgkey=https://www.mongodb.org/static/pgp/server-3.2.asc

二、安装MongoDB

# yum -y install mongodb-org     Loaded plugins: fastestmirror, langpacks                     base                                                              | 3.6 kB  00:00:00 epel/x86_64/metalink | 5.2 kB 00:00:00 extras | 3.4 kB 00:00:00 mongodb-org-3.2 | 2.5 kB 00:00:00 updates | 3.4 kB 00:00:00 mongodb-org-3.2/7/primary_db | 50 kB 00:00:03 Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * epel: mirrors.tuna.tsinghua.edu.cn * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com Resolving Dependencies --> Running transaction check ---> Package mongodb-org.x86_64 0:3.2.10-1.el7 will be installed --> Processing Dependency: mongodb-org-tools = 3.2.10 for package: mongodb-org-3.2.10-1.el7.x86_64 --> Processing Dependency: mongodb-org-shell = 3.2.10 for package: mongodb-org-3.2.10-1.el7.x86_64 --> Processing Dependency: mongodb-org-server = 3.2.10 for package: mongodb-org-3.2.10-1.el7.x86_64 --> Processing Dependency: mongodb-org-mongos = 3.2.10 for package: mongodb-org-3.2.10-1.el7.x86_64 --> Running transaction check ---> Package mongodb-org-mongos.x86_64 0:3.2.10-1.el7 will be installed ---> Package mongodb-org-server.x86_64 0:3.2.10-1.el7 will be installed ---> Package mongodb-org-shell.x86_64 0:3.2.10-1.el7 will be installed ---> Package mongodb-org-tools.x86_64 0:3.2.10-1.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved =================================================================================================== Package Arch Version Repository Size =================================================================================================== Installing: mongodb-org x86_64 3.2.10-1.el7 mongodb-org-3.2 5.8 k Installing for dependencies: mongodb-org-mongos x86_64 3.2.10-1.el7 mongodb-org-3.2 5.6 M mongodb-org-server x86_64 3.2.10-1.el7 mongodb-org-3.2 12 M mongodb-org-shell x86_64 3.2.10-1.el7 mongodb-org-3.2 6.7 M mongodb-org-tools x86_64 3.2.10-1.el7 mongodb-org-3.2 41 M Transaction Summary =================================================================================================== Install 1 Package (+4 Dependent packages) Total download size: 65 M Installed size: 201 M Downloading packages: warning: /var/cache/yum/x86_64/7/mongodb-org-3.2/packages/mongodb-org-3.2.10-1.el7.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID ea312927: NOKEY ] Public key for mongodb-org-3.2.10-1.el7.x86_64.rpm is not installed (1/5): mongodb-org-3.2.10-1.el7.x86_64.rpm | 5.8 kB 00:00:04 (2/5): mongodb-org-server-3.2.10-1.el7.x86_64.rpm | 12 MB 00:00:11 (3/5): mongodb-org-shell-3.2.10-1.el7.x86_64.rpm | 6.7 MB 00:00:06 (4/5): mongodb-org-tools-3.2.10-1.el7.x86_64.rpm | 41 MB 00:00:36 (5/5): mongodb-org-mongos-3.2.10-1.el7.x86_64.rpm | 5.6 MB 00:03:28 --------------------------------------------------------------------------------------------------- Total 322 kB/s | 65 MB 00:03:28 Retrieving key from https://www.mongodb.org/static/pgp/server-3.2.asc Importing GPG key 0xEA312927: Userid : "MongoDB 3.2 Release Signing Key 
" Fingerprint: 42f3 e95a 2c4f 0827 9c49 60ad d68f a50f ea31 2927 From : https://www.mongodb.org/static/pgp/server-3.2.asc Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : mongodb-org-tools-3.2.10-1.el7.x86_64 1/5 Installing : mongodb-org-mongos-3.2.10-1.el7.x86_64 2/5 Installing : mongodb-org-shell-3.2.10-1.el7.x86_64 3/5 Installing : mongodb-org-server-3.2.10-1.el7.x86_64 4/5 Installing : mongodb-org-3.2.10-1.el7.x86_64 5/5 Verifying : mongodb-org-server-3.2.10-1.el7.x86_64 1/5 Verifying : mongodb-org-3.2

转载于:https://www.cnblogs.com/cloudy6841/p/9328817.html

你可能感兴趣的文章
文 OR 理?答案都在这里!
查看>>
XML+JSON面试题都在这里
查看>>
教你如何攻克Kotlin中泛型型变的难点(实践篇)
查看>>
2018Android面试经历
查看>>
不受限对抗样本挑战赛介绍
查看>>
浅解前端必须掌握的算法(三):直接插入排序
查看>>
[译] TensorFlow 教程 #06 - CIFAR-10
查看>>
阅读SSH的ERP项目【第二篇】
查看>>
如何有效的避免OOM,温故Java中的引用
查看>>
NSHipster: NSRegularExpression 中文版
查看>>
Android 开发中不得不知道的 Tips 集合 (持续更新 ing)
查看>>
报警系统QuickAlarm之报警规则的设定与加载
查看>>
【CLI】使用 Curl 下载文件实时进度条显示
查看>>
Android 滤镜效果和颜色通道过滤
查看>>
Ruby开发者已可通过Fog管理Microsoft Azure服务
查看>>
Chrome和HTTPS:安全Web的征途
查看>>
软件专家的对话模式(第一部分)
查看>>
脚本填报表的条件查询
查看>>
从一个开发的角度看负载均衡和LVS
查看>>
Spring Boot(12)——使用MongoDB
查看>>