我要评分
获取效率
正确性
完整性
易理解

Installing HAProxy by Using the Yum Source Obtained from a Mirror Site

openEuler does not support such a Yum source installation method.

  1. Check that the Internet connection is normal.
    1
    curl www.baidu.com
    
  2. Configure the network source.
    1. Switch 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

        Set baseurl to the address of the mirror site.

      3. Save and close the rpm.repo file.
  3. Make the network source take effect.
    1
    yum clean all
    
    1
    yum makecache
    
    1
    yum list
    
  4. Install HAProxy using the Yum source.
    1
    yum install haproxy-1.9.0-1.el7.aarch64
    
  5. Check the installation directory.
    1
    ls /usr/local/haproxy