Rate This Document
Findability
Accuracy
Completeness
Readability

Installing with RPM Packages

This section uses MongoDB 3.6.13 as an example. You can also refer to this section for MongoDB of other versions.

  1. Download the MongoDB RPM package.
  2. Install the dependency packages.
    1
    2
    cd ~
    yum -y install python2 python2-setuptools python2-devel net-tools
    
  3. Upload the packages to the /root directory on the server.
    1
    2
    3
    cd /root
    wget https://mirrors.huaweicloud.com/kunpeng/yum/el/8/aarch64/Packages/database/mongodb-3.6.13-1.el8.aarch64.rpm --no-check-certificate
    wget https://mirrors.huaweicloud.com/kunpeng/yum/el/8/aarch64/Packages/database/mongodb-tools-3.6.13-1.el8.aarch64.rpm --no-check-certificate
    
  4. Install the RPM packages of MongoDB and MongoDB Tools.
    1
    rpm -ivh mongodb-3.6.13-1.el8.aarch64.rpm
    

    rpm -ivh mongodb-tools-3.6.13-1.el8.aarch64.rpm

  5. Check the installed RPM packages.
    1
    rpm -qa | grep mongodb-3.6.13
    

    1
    rpm -qa | grep mongodb-tools-3.6.13
    

  6. Check the paths of the installed MongoDB database and MongoDB Tools.
    1
    ll /usr/local/mongo/bin/
    

    1
    ll /usr/local/mongodb-tools/bin/