yum install mongodb 3.2 fails

后端 未结 13 1321
自闭症患者
自闭症患者 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-08 00:51

    You should know that this URL https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/ is not working anymore.

    Go to http://repo.mongodb.org/yum/redhat/ and download mongodb-org.repo file.

    Configure the package management system (yum), copy mongodb-org.repo to /etc/yum.repos.d/, so that you can install MongoDB directly, using yum.

    Install the MongoDB packages and associated tools.

    sudo yum install -y mongodb-org mongodb-org-server
    

    Unfortunatelly mongodb website documentation suggests using https://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat/, but this is wrong way.

提交回复
热议问题