Rate This Document
Findability
Accuracy
Completeness
Readability

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

  1. Obtain the Apache RPM package.
    1. 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

    2. 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
      
  2. Install Apache.
    1
    2
    3
    cd /home
    rpm -ivh httpd-2.4.39-3.el7.aarch64.rpm
    rpm -qa | grep httpd
    
  3. View the installation directory.
    1
    ls /usr/local/apache2
    
  4. 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.

  1. Obtain the Apache RPM package.
    1. Download the Apache RPM package using a local browser.

      Download addresses:

      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

    2. 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
      
  2. Start the installation.
    rpm -ivh httpd-tools-2.4.39-1.el8.aarch64.rpm
    rpm -ivh httpd-2.4.39-1.el8.aarch64.rpm

  3. View the installation directory.
    find / -name httpd