Installing Apache by Using an RPM Package Obtained from a Mirror Site
|
Software Version |
Whether to Support CentOS 7.6 |
Whether to Support CentOS 8.1 |
Whether to Support openEuler 20.03 (LTS-SP1) |
|---|---|---|---|
|
Apache httpd 2.4.39 |
Yes |
Yes |
No |
- The binary packages available at the Kunpeng mirror site are compiled and packaged based on the open source code, and do not involve vulnerability or bug fixes.
- When using open source software, comply with the applicable license.
CentOS 7.6
- Obtain the Apache RPM package.
- Download the RPM package using a local browser.
URL: https://mirrors.huaweicloud.com/kunpeng/yum/el/7/aarch64/Packages/web/httpd-2.4.39-3.el7.aarch64.rpm
- Copy the RPM package to the /home directory on the server.
If the server can access the Internet, you can run the wget command on the server to download the RPM package.
1 2
cd /home wget https://mirrors.huaweicloud.com/kunpeng/yum/el/7/aarch64/Packages/web/httpd-2.4.39-3.el7.aarch64.rpm --no-check-certificate
- Download the RPM package using a local browser.
- Install Apache.
1 2 3
cd /home rpm -ivh httpd-2.4.39-3.el7.aarch64.rpm rpm -qa | grep httpd
- View the installation directory.
1ls /usr/local/apache2 - View the version.
1/usr/local/apache2/bin/apachectl -v
CentOS 8.1
The binary packages available at the Kunpeng mirror site are compiled based on the open source code, and do not involve vulnerability or bug fixes.
When using open source software, comply with the applicable license agreements.
- Obtain the Apache RPM package.
- Download the Apache RPM package using a local browser.
https://repo.huaweicloud.com/kunpeng/yum/el/8/aarch64/Packages/web/httpd-tools-2.4.39-1.el8.aarch64.rpm
https://repo.huaweicloud.com/kunpeng/yum/el/8/aarch64/Packages/web/httpd-2.4.39-1.el8.aarch64.rpm
- Upload the RPM package to the /home directory on the server.
If the server is connected to the Internet, run the wget command to download the Apache RPM package.
1 2 3
cd /home wget https://repo.huaweicloud.com/kunpeng/yum/el/8/aarch64/Packages/web/httpd-tools-2.4.39-1.el8.aarch64.rpm --no-check-certificate wget https://repo.huaweicloud.com/kunpeng/yum/el/8/aarch64/Packages/web/httpd-2.4.39-1.el8.aarch64.rpm --no-check-certificate
- Download the Apache RPM package using a local browser.
- Start the installation.
rpm -ivh httpd-tools-2.4.39-1.el8.aarch64.rpm rpm -ivh httpd-2.4.39-1.el8.aarch64.rpm


- View the installation directory.
find / -name httpd
