Linux - CentOS 7 yum方式快速安装MongoDB
一、安装环境及配置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 <packaging@mongodb.com>"
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.10-1.el7.x86_64 2/5
Verifying : mongodb-org-shell-3.2.10-1.el7.x86_64 3/5
Verifying : mongodb-org-mongos-3.2.10-1.el7.x86_64 4/5
Verifying : mongodb-org-tools-3.2.10-1.el7.x86_64 5/5 Installed:
mongodb-org.x86_64 0:3.2.10-1.el7 Dependency Installed:
mongodb-org-mongos.x86_64 0:3.2.10-1.el7 #Author : Leshami
mongodb-org-server.x86_64 0:3.2.10-1.el7 #Blog : http://blog.csdn.net/leshami
mongodb-org-shell.x86_64 0:3.2.10-1.el7
mongodb-org-tools.x86_64 0:3.2.10-1.el7 Complete!三、验证安装结果
# rpm -qa |grep mongodb
mongodb-org-3.2.10-1.el7.x86_64
mongodb-org-mongos-3.2.10-1.el7.x86_64
mongodb-org-shell-3.2.10-1.el7.x86_64
mongodb-org-server-3.2.10-1.el7.x86_64
mongodb-org-tools-3.2.10-1.el7.x86_64 # rpm -ql mongodb-org-server
/etc/init.d/mongod
/etc/mongod.conf
/etc/sysconfig/mongod
/usr/bin/mongod
/usr/share/doc/mongodb-org-server-3.2.10
/usr/share/doc/mongodb-org-server-3.2.10/GNU-AGPL-3.0
/usr/share/doc/mongodb-org-server-3.2.10/MPL-2
/usr/share/doc/mongodb-org-server-3.2.10/README
/usr/share/doc/mongodb-org-server-3.2.10/THIRD-PARTY-NOTICES
/usr/share/man/man1/mongod.1
/var/lib/mongo
/var/log/mongodb
/var/log/mongodb/mongod.log
/var/run/mongodb [root@localhost ~]# /etc/init.d/mongod start
Starting mongod (via systemctl): [ OK ]
[root@localhost ~]# netstat -nltp|grep mongo
tcp 0 0 127.0.0.1:27017 0.0.0.0:* LISTEN 89958/mongod # mongo
MongoDB shell version: 3.2.10
connecting to: test
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
http://docs.mongodb.org/
Questions? Try the support group
http://groups.google.com/group/mongodb-user
> db.version()
3.2.10
Linux - CentOS 7 yum方式快速安装MongoDB的更多相关文章
- CentOS 7 yum方式快速安装MongoDB
一.安装环境及配置yum # more /etc/redhat-release CentOS Linux release 7.2.1511 (Core) # vi /etc/yum.repos.d/m ...
- centos使用yum存储快速安装MySQL
RHEL/CentOS 7.x MySQL yum库 https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm RHEL ...
- 在Linux(CentOS 6.6)服务器上安装并配置基于Apache的SVN服务器
#!/bin/bash # # 在Linux(CentOS 6.6)服务器上安装并配置基于Apache的SVN服务器: # # .安装服务 # .创建svn版本库 # .创建svn用户 # .配置sv ...
- Linux(CentOS 7)命令行模式安装VMware Tools 详解
本篇文章主要介绍了如何在Linux(CentOS 7)命令行模式安装VMware Tools,具有一定的参考价值,感兴趣的小伙伴们可以参考一下. 本例中为在Linux(以CentOS 7为例)安装VM ...
- 二进制方式快速安装MySQL数据库命令集合
二进制方式快速安装MySQL数据库命令集合 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1.安装mysql ls mysql ...
- 在Ubuntu上使用离线方式快速安装K8S v1.11.1
在Ubuntu上使用离线方式快速安装K8S v1.11.1 0.安装包文件下载 https://pan.baidu.com/s/1nmC94Uh-lIl0slLFeA1-qw v1.11.1 文件大小 ...
- CentOS RDO方式快速安装OpenStack
一.了解RDO RDO是什么? RDO是红帽Red Hat Enterprise Linux OpenStack Platform的社区版,类似RHEL和Fedora,RHEV和oVirt这样的关系. ...
- Centos中yum方式安装java
查看CentOS自带JDK是否已安装.◆输入:yum list installed |grep java. 若有自带安装的JDK,如何卸载CentOS系统自带Java环境?◆卸载JDK相关文件输入:y ...
- Linux Centos 使用 yum 安装java
centos 使用 yum 安装java 首先,在你的服务器上运行一下更新. yum update 然后,在您的系统上搜索,任何版本的已安装的JDK组件. rpm -qa | grep -E '^op ...
随机推荐
- sql-case when,row_number
--排序 select Row_Number() over(order by a.UserName) as Num --区分性别 then '男' else '女' end SexName Sqlse ...
- EasyUI combobox 加载JSON数据
Action返回 JSON 格式如下: jsonResult = { total=7,rows=[ {TEXT=技术支持, ID=402894ca4419acf1014419b148a10000}, ...
- Hush Framework框架配置(转)
在写这篇文章的时候,楼主已经饿的不行了,因为我从3点开始就在折腾Hush Framework,走了很多弯路,打铁要趁热,先把基本的过程记录下来,留待以后翻阅,同时记录其中容易走弯路的地方,特别是对于一 ...
- LeetCode总结 -- 一维动态规划篇
这篇文章的主题是动态规划, 主要介绍LeetCode中一维动态规划的题目, 列表如下: Climbing StairsDecode WaysUnique Binary Search TreesMaxi ...
- 一个较复杂的执行redis的lue脚本
- node-7.2.1 already installed, it's just not linked
直接在terminal下运行以卸载node和nvm: sudo rm -rf /usr/local/{bin/{node,npm},lib/node_modules/npm,lib/node,shar ...
- 深入解析Backbone.js框架的依赖库Underscore.js的作用
这篇文章主要介绍了深入解析Backbone.js框架的依赖库Underscore.js的作用,用过Node.js的朋友对Underscore一定不会陌生:)需要的朋友可以参考下 backbone必须依 ...
- POJ-2992 Divisors---组合数求因子数目
题目链接: https://cn.vjudge.net/problem/POJ-2992 题目大意: 给出组合数Cnk,求出其因子个数,其中n,k不大于431,组合数的值在long long范围内 解 ...
- BZOJ2407/4398:探险/福慧双修(最短路)
Description 探险家小T好高兴!X国要举办一次溶洞探险比赛,获奖者将得到丰厚奖品哦!小T虽然对奖品不感兴趣,但是这个大振名声的机会当然不能错过! 比赛即将开始,工作人员说明了这次比赛的规则: ...
- CF739B Alyona and a tree
嘟嘟嘟 前缀和+倍增+树上差分 假设\(v\)是\(u\)子树中的一个点,那么\(u\)能控制\(v\)的条件是受\(v\)的权值的限制,而并非\(u\).因此我们就能想到计算每一个点的贡献,即\(v ...