Installing HAProxy by Using the Yum Source Obtained from a Mirror Site
openEuler does not support such a Yum source installation method.
- Check that the Internet connection is normal.
1curl www.baidu.com - Configure the network source.
- Switch to the /etc/yum.repos.d directory.
1cd /etc/yum.repos.d
- Create the rpm.repo file.
- Create the rpm.repo file.
1vi rpm.repo - 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.
- Save and close the rpm.repo file.
- Create the rpm.repo file.
- Switch to the /etc/yum.repos.d directory.
- Make the network source take effect.
1yum clean all
1yum makecache1yum list - Install HAProxy using the Yum source.
1yum install haproxy-1.9.0-1.el7.aarch64
- Check the installation directory.
1ls /usr/local/haproxy
Parent topic: Installing HAProxy