yum install mongodb 3.2 fails

后端 未结 13 1349
自闭症患者
自闭症患者 2021-02-08 00:04

I am trying to install mongodb 3.2 on a CentOS 7 machine and facing issues in locating the packages.

I have updated the repo file as per the documentation:



        
13条回答
  •  Happy的楠姐
    2021-02-08 00:39

    first you have to create repo in your redhat system.

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

    and Enter i, and copy-past this.

    [mongodb-org-4.0]
    name=MongoDB Repository
    baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/x86_64/
    gpgcheck=1
    enabled=1
    gpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc
    

    and save it like- enter ctrl + : and enter : + qw and run this command

    yum install mongodb-org

提交回复
热议问题