0
点赞
收藏
分享

微信扫一扫

centos7配置MongoDB镜像

624c95384278 2022-02-13 阅读 96


 MongoDB 是一个基于分布式文件存储的数据库。由 C++ 语言编写。旨在为 WEB 应用提供可扩展的高性能数据存储解决方案。

大家也可以打开阿里云官方镜像站:​​https://developer.aliyun.com/mirror/​​查看详细说明。

配置方法

安装(使用yum源安装)

在/etc/yum.repos.d 创建一个mongodb-org.repo源文件

vi /etc/yum.repos.d/mongodb-org.repo

centos7配置MongoDB镜像_mongodbcentos7配置MongoDB镜像_解决方案_02

添加内容如下:(配置偶数版本,奇数版不适合生产使用)

[mongodb-org]

name = MongoDB Repository

baseurl = https://mirrors.aliyun.com/mongodb/yum/redhat/$releasever/mongodb-org/3.6/x86_64/

gpgcheck = 1

enabled = 1

gpgkey = https://www.mongodb.org/static/pgp/server-3.6.asc

centos7配置MongoDB镜像_数据库_03centos7配置MongoDB镜像_解决方案_04

最后执行命令安装MongoDB

 yum install mongodb-org

centos7配置MongoDB镜像_解决方案_05centos7配置MongoDB镜像_mongodb_06

Is this OK?输入y

centos7配置MongoDB镜像_解决方案_07centos7配置MongoDB镜像_mongodb_08

centos7配置MongoDB镜像_解决方案_09centos7配置MongoDB镜像_数据库_10


举报

相关推荐

0 条评论