MongoDb centos7安装

男娘i 2022-06-06 02:28 375阅读 0赞

1.vim /etc/yum.repos.d/mongodb-org-3.6.repo

Use the following repository file:

[mongodb-org-3.6]

  1. name=MongoDB Repository
  2. baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/testing/x86_64/
  3. gpgcheck=1
  4. enabled=1
  5. gpgkey=https://www.mongodb.org/static/pgp/server-3.6.asc
  1. To install the latest stable version of MongoDB, issue the following command:

    sudo yum install -y mongodb-org

    sudo service mongod start

    sudo chkconfig mongod on

发表评论

表情:
评论列表 (有 0 条评论,375人围观)

还没有评论,来说两句吧...

相关阅读

    相关 CentOS 7安装MongoDB

    简介 因为公司监控系统获取的应用监控指标数据,需要存放在mongo数据库,最近就开始研究一下mongo数据库,先从最简单的mongo数据库安装和简单使用,和大家做一下分享