Home >Database >Mysql Tutorial >CentOS6.5安装MongoDB2.6(多yum数据源)

CentOS6.5安装MongoDB2.6(多yum数据源)

WBOY
WBOYOriginal
2016-06-07 16:09:481203browse

下面我们在CentOS 6.5 x64系统上安装最新的MongoDB 2.6.5版。 在MongoDB v2.6.5版的软件仓库一共有五个包: 1)mongodb-org 在/etc/yum.repos.d/目录下创建文件mongodb.repo,它包含MongoDB仓库的配置信息,内容如下: [mongodb]name=MongoDB Repositorybaseu

下面我们在CentOS 6.5 x64系统上安装最新的MongoDB 2.6.5版。
在MongoDB v2.6.5版的软件仓库一共有五个包:

1)mongodb-org

在/etc/yum.repos.d/目录下创建文件mongodb.repo,它包含MongoDB仓库的配置信息,内容如下:
[mongodb]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
gpgcheck=0
enabled=1

注意报错:

Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds'

数据源在国内访问网速过慢,可参考以下数据源:

http://mongo.a.mesa.io/repo/redhat/os/x86_64/

\

3、配置SELinux防火墙

$ sudo service mongod restart

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn