MongoDB是目前最常用的NoSQL-非关系型数据库。

本文将介绍在CentOS下如何通过yum安装MongoDB。

1.首先在CentOS6.5下,编辑Mongo的yum源:

在/etc/yum.repo.d下,编辑mongo.repo

vim mongo.repo

[mongodb-enterprise]

name=MongoDB Enterprise Repository

baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/

gpgcheck=0

enabled=1

2.查找mongodb的相关软件:

yum search mongo

yum search mongo

Loaded plugins: fastestmirror, security

Loading mirror speeds from cached hostfile

============================================================================================== N/S Matched: mongo ===============================================================================================

python-mongoengine.noarch : A Python Document-Object Mapper for working with MongoDB

almas-mongolian-title-fonts.noarch : Mongolian Title font

nodejs-mongodb.noarch : A node driver for MongoDB

php-pecl-mongo.x86_64 : PHP MongoDB database driver

python-asyncmongo.noarch : An asynchronous Python MongoDB library

python-flask-mongoengine.noarch : Flask extension that provides integration with MongoEngine

python-pymongo.x86_64 : Python driver for MongoDB

hunspell-mn.noarch : Mongolian hunspell dictionaries

hyphen-mn.noarch : Mongolian hyphenation rules

libmongodb.x86_64 : MongoDB shared libraries

libmongodb-devel.i686 : MongoDB header files

libmongodb-devel.x86_64 : MongoDB header files

mongo-10gen.x86_64 : mongo client shell and tools

mongo-10gen-server.x86_64 : mongo server, sharding server, and support scripts

mongo-10gen-unstable.x86_64 : mongo client shell and tools

mongo-10gen-unstable-mongos.x86_64 : MongoDB sharding server

mongo-10gen-unstable-server.x86_64 : mongo server, sharding server, and support scripts

mongo-10gen-unstable-shell.x86_64 : MongoDB shell

mongo-10gen-unstable-tools.x86_64 : MongoDB utilities

mongo18-10gen.x86_64 : mongo client shell and tools

mongo18-10gen-server.x86_64 : mongo server, sharding server, and support scripts

mongo20-10gen.x86_64 : mongo client shell and tools

mongo20-10gen-server.x86_64 : mongo server, sharding server, and support scripts

mongodb-org.x86_64 : MongoDB cross-platform document-oriented database system (metapackage)

mongodb-org-mongos.x86_64 : MongoDB sharding router

mongodb-org-server.x86_64 : MongoDB database server

mongodb-org-shell.x86_64 : MongoDB shell client

mongodb-org-tools.x86_64 : MongoDB tools

mongodb-org-unstable.x86_64 : MongoDB server, shell, sharding server and tools

mongodb-org-unstable-mongos.x86_64 : MongoDB sharding server

mongodb-org-unstable-server.x86_64 : MongoDB server and support scripts

mongodb-org-unstable-shell.x86_64 : MongoDB shell

mongodb-org-unstable-tools.x86_64 : MongoDB utilities

mongodb-server.x86_64 : MongoDB server, sharding server and support scripts

mongoose-devel.i686 : Header files and development libraries for mongoose

mongoose-devel.x86_64 : Header files and development libraries for mongoose

mongoose-lib.i686 : Shared Object for applications that use mongoose embedded

mongoose-lib.x86_64 : Shared Object for applications that use mongoose embedded

php-horde-Horde-Mongo.noarch : Horde Mongo Configuration

pymongo.x86_64 : Python driver for MongoDB

pymongo-gridfs.x86_64 : Python GridFS driver for MongoDB

python-pymongo-gridfs.x86_64 : Python GridFS driver for MongoDB

autocorr-mn.noarch : Mongolian auto-correction rules

eclipse-nls-mn.x86_64 : Eclipse/Babel language pack for Mongolian

mongodb.x86_64 : High-performance, schema-free document-oriented database

mongodb-mms-backup-agent.x86_64 : The MMS Backup Agent

mongodb-mms-monitoring-agent.x86_64 : The MMS Monitoring Agent

mongoose.x86_64 : An easy-to-use self-sufficient web server

 

Name and summary matches only, use "search all" for everything.

Mongodb-org开头的,就是刚刚添加的源所找到的相关软件。

3.安装mongodb

通过yum install mongodb:

yum install -y mongodb-org -y

Loaded plugins: fastestmirror, security

Loading mirror speeds from cached hostfile

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package mongodb-org.x86_64 0:2.6.12-1 will be installed

--> Processing Dependency: mongodb-org-shell = 2.6.12 for package: mongodb-org-2.6.12-1.x86_64

--> Processing Dependency: mongodb-org-server = 2.6.12 for package: mongodb-org-2.6.12-1.x86_64

--> Processing Dependency: mongodb-org-tools = 2.6.12 for package: mongodb-org-2.6.12-1.x86_64

--> Processing Dependency: mongodb-org-mongos = 2.6.12 for package: mongodb-org-2.6.12-1.x86_64

--> Running transaction check

---> Package mongodb-org-mongos.x86_64 0:2.6.12-1 will be installed

---> Package mongodb-org-server.x86_64 0:2.6.12-1 will be installed

---> Package mongodb-org-shell.x86_64 0:2.6.12-1 will be installed

---> Package mongodb-org-tools.x86_64 0:2.6.12-1 will be installed

--> Finished Dependency Resolution

 

Dependencies Resolved

 

=================================================================================================================================================================================================================

Package Arch Version Repository Size

=================================================================================================================================================================================================================

Installing:

mongodb-org x86_64 2.6.12-1 mongodb-enterprise 4.6 k

Installing for dependencies:

mongodb-org-mongos x86_64 2.6.12-1 mongodb-enterprise 6.9 M

mongodb-org-server x86_64 2.6.12-1 mongodb-enterprise 9.1 M

mongodb-org-shell x86_64 2.6.12-1 mongodb-enterprise 4.3 M

mongodb-org-tools x86_64 2.6.12-1 mongodb-enterprise 90 M

 

Transaction Summary

=================================================================================================================================================================================================================

Install 5 Package(s)

 

Total download size: 110 M

Installed size: 279 M

Downloading Packages:

(1/5): mongodb-org-2.6.12-1.x86_64.rpm | 4.6 kB 00:00

(2/5): mongodb-org-mongos-2.6.12-1.x86_64.rpm | 6.9 MB 00:39

(3/5): mongodb-org-server-2.6.12-1.x86_64.rpm | 9.1 MB 01:17

(4/5): mongodb-org-shell-2.6.12-1.x86_64.rpm | 4.3 MB 00:40

(5/5): mongodb-org-tools-2.6.12-1.x86_64.rpm | 90 MB 08:09

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Total 170 kB/s | 110 MB 11:03

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Installing : mongodb-org-server-2.6.12-1.x86_64 1/5

Installing : mongodb-org-mongos-2.6.12-1.x86_64 2/5

Installing : mongodb-org-tools-2.6.12-1.x86_64 3/5

Installing : mongodb-org-shell-2.6.12-1.x86_64 4/5

Installing : mongodb-org-2.6.12-1.x86_64 5/5

Verifying : mongodb-org-shell-2.6.12-1.x86_64 1/5

Verifying : mongodb-org-tools-2.6.12-1.x86_64 2/5

Verifying : mongodb-org-mongos-2.6.12-1.x86_64 3/5

Verifying : mongodb-org-server-2.6.12-1.x86_64 4/5

Verifying : mongodb-org-2.6.12-1.x86_64 5/5

 

Installed:

mongodb-org.x86_64 0:2.6.12-1

 

Dependency Installed:

mongodb-org-mongos.x86_64 0:2.6.12-1 mongodb-org-server.x86_64 0:2.6.12-1 mongodb-org-shell.x86_64 0:2.6.12-1 mongodb-org-tools.x86_64 0:2.6.12-1

 

Complete!

CentOS6.5下安装mongodb的更多相关文章

  1. CentOS6.10下安装MongoDB和Redis

    安装mongodb 首先考虑离线安装,但是安装过程中在启动服务的时候出现了问题,centOS出于稳定原因考虑,系统自带的glibc版本过低, 而编译需要使用较高版本,这个问题我查询了一下,需要升级gl ...

  2. 【转载】CentOS6.5_X64下安装配置MongoDB数据库

    [转载]CentOS6.5_X64下安装配置MongoDB数据库 2014-05-16 10:07:09|  分类: 默认分类|举报|字号 订阅      下载LOFTER客户端 本文转载自zhm&l ...

  3. Windows 下安装 MongoDB

    Windows 下安装 MongoDB 的步骤:1.官网www.mongodb.com下载安装包或zip包2.解压下载的文件到文件夹 D:\mongo .3.使用管理员权限打开CMD,导航到目录 D: ...

  4. CentOS6.5下安装apache2.2和PHP 5.5.28

    CentOS6.5下安装apache2.2 1. 准备程序 :httpd-2.2.27.tar.gz 下载地址:http://httpd.apache.org/download.cgi#apache2 ...

  5. CentOS6.5下安装配置MySQL

    CentOS6.5下安装配置MySQL,配置方法如下: 安装mysql数据库:# yum install -y mysql-server mysql mysql-deve 查看mysql-server ...

  6. 【MongoDb--初入江湖】windows下安装MongoDb

    一.windows下安装MongoDb http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/

  7. Centos 下安装MongoDB

    Centos 下安装MongoDB 一.安装方法 方法(一) 1  配置包管理系统 创建/etc/yum.repos.d/mongodb.repo 文件,当然我们使用的是64位系统,32位的情况不再考 ...

  8. Mac下安装 MongoDB

    Mac 下安装 MongoDB 一般有两种方法,一种是通过源码安装,一种是直接使用 homebrew ,个人推荐使用 homebrew ,简单粗暴. 1.安装 homebrew : /usr/bin/ ...

  9. windows下安装MongoDB进度条不动

    windows 下安装MongoDB, 在 Installing MongoDB Compass...(this may take a few minutes) 一步,会停留很长时间,点击取消可能也会 ...

随机推荐

  1. DNS 安装配置

    DNS 安装配置 实验环境 一台主机:Linux Centos 6.5 32位 安装包: DNS服务:bind.i686 DNS测试工具:bind-utils DNS 服务安装 1.yum安装DNS服 ...

  2. 灰色3D按钮组合

    在线演示 本地下载

  3. HTML5 画布canvas

    SVG的<defs> <symbols> 元素用于预定义一个元素使其能够在SVG图像中重复使用 <svg xmlns="http://www.w3.org/20 ...

  4. vs 2010 mvc 3.0安装软件

    下载链接如下:MVC 3安装包:http://www.microsoft.com/downloads/zh-cn/details.aspx?familyid=d2928bc1-f48c-4e95-a0 ...

  5. Linux嵌入式 -- 内核 (arm) & 文件系统

    1. make distclean 2. 配置内核  ----> 生成 .config文件 make menuconfig ARCH=arm Makefile文件分析: 3.  编译内核 mak ...

  6. Spring初学之注解方式配置bean

    直接看代码: UserController.java package spring.beans.annotation.controller; import org.springframework.be ...

  7. linux命令:mv命令

    mv命令是move的缩写,可以用来移动文件或者将文件改名(move (rename) files),是Linux系统下常用的命令,经常用来备份文件或者目录. 1.命令格式: mv [选项] 源文件或目 ...

  8. form组件的总结

    1.form组件(******) 局部钩子 全局钩子 ''' 实例化时: self.fields={ "username":"字段规则对象", "pa ...

  9. review10

    public int indexOf(String s); 字符串的索引位置时从0开始的(只有一个参数时),从当前字符串的头开始检索字符串s,并返回首次出现s的索引位置.如果没有检测到字符串s,该方法 ...

  10. 简单CSS3动画

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...