HAProxy 3.0.5 2024/09/19
Perform the following steps on a build box as a regular user:
sudo dnf -y groupinstall 'Development Tools'
cd /opt
sudo git clone https://github.com/philyuchkoff/HAProxy-3-RPM-builder.git
cd ./HAProxy-3-RPM-builder
sudo make
sudo make USE_LUA=1
sudo make USE_PROMETHEUS=1
sudo make NO_SUDO=1
Resulting RPM will be stored in
/opt/HAProxy-3-RPM-builder/rpmbuild/RPMS/x86_64/
sudo make run-docker
Resulting RPM will be stored in
./RPMS/
sudo dnf -y install /opt/HAProxy-3-RPM-builder/rpmbuild/RPMS/x86_64/haproxy-3.0.5-1.el8.x86_64.rpm
or, if you build *.rpm with Docker:
sudo dnf -y install RPMS/haproxy-3.0.5-1.el8.x86_64.rpm
haproxy -v
After installation you can access a stats page without authenticating via the URL: http://<YourHAProxyServer>:9000/haproxy_stats
sestatus
If SELINUX is enabled - switch off this: open /etc/selinux/config and change SELINUX to disabled:
sudo sed -i s/^SELINUX=.*$/SELINUX=disabled/ /etc/selinux/config
[/usr/sbin/haproxy.main()] Cannot chroot1(/var/lib/haproxy)
- Create
/var/lib/haproxy
directory - Check on the rpcbind service to ensure that this service is started
cd /etc/yum.repos.d/
sudo sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sudo sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*