Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Apache by Using the Yum Source 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

No

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.

  1. Check that the Internet connection is normal.
    1
    curl www.baidu.com
    
  2. Configure the network source.
    1. Go to the /etc/yum.repos.d directory.
      1
      cd /etc/yum.repos.d
      
    2. Create the rpm.repo file.
      1. Create the rpm.repo file.
        1
        vi rpm.repo
        
      2. Add the following information to the rpm.repo file:
        [rpm]
        name=rpm
        baseurl=https://mirrors.huaweicloud.com/kunpeng/yum/el/7/aarch64/
        gpgcheck=0
        enabled=1
      3. Press Esc, type :wq!, and press Enter to save the file and exit.
  3. Make the network source take effect.
    1
    2
    3
    yum clean all
    yum makecache
    yum list
    
  4. Install Apache using the Yum source.
    1
    yum -y install httpd-2.4.39-3.el7.aarch64
    

    The installed Apache is in the /usr/local/apache2 directory.

  5. View the installation directory.
    1
    ls /usr/local/apache2
    
  6. View the version.
    1
    /usr/local/apache2/bin/apachectl -v