ITPub博客

首页 > Linux操作系统 > Linux操作系统 > centos7配置MongoDB镜像

centos7配置MongoDB镜像

原创 Linux操作系统 作者:Aug_Spark 时间:2022-02-13 15:07:52 0 删除 编辑

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

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

配置方法

安装(使用yum源安装)

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

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

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

[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

最后执行命令安装MongoDB

 yum install mongodb-org

Is this OK?输入y


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/70012008/viewspace-2855472/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2021-12-24

  • 博文量
    38
  • 访问量
    16794