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.
- Download the MongoDB RPM package.
- Install the dependency packages.
1 2
cd ~ yum -y install python2 python2-setuptools python2-devel net-tools
- 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
- Install the RPM packages of MongoDB and MongoDB Tools.
1rpm -ivh mongodb-3.6.13-1.el8.aarch64.rpm

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

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

1rpm -qa | grep mongodb-tools-3.6.13

- Check the paths of the installed MongoDB database and MongoDB Tools.
1ll /usr/local/mongo/bin/
1ll /usr/local/mongodb-tools/bin/
Parent topic: Installation