在CentOS 5.5上安装MongoDB

首先编辑/etc/yum.repos.d下的配置文件,我修改的是epel.repo,这个配置文件是我在安装OpenVPN的时候加入的,具体参见《CentOS VPS 安装 OpenVPN》。在配置文件中加入MongoDB的Repository地址:

[10gen]

name=10gen Repository

baseurl=http://downloads.mongodb.org/distros/centos/5.4/os/x86_64/

gpgcheck=0

然后执行:

yum update

yum install mongo-stable-server

/etc/init.d/mongod start

安装Ruby的驱动:

yum install mongo

2 thoughts on “在CentOS 5.5上安装MongoDB

  1. Pingback: [教程]CentOS5.5平台安装lemp | haohtml's blog

  2. Pingback: [教程]Centos下安装lnmp教程(最新版2012-02-05) | haohtml's blog

Comments are closed.