HAProxy 2.7.2 2023/01/20
Perform the following steps on a build box as a regular user:
sudo yum -y groupinstall 'Development Tools'
cd /opt
sudo git clone https://github.com/philyuchkoff/HAProxy-2-RPM-builder.git
cd ./HAProxy-2-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-2-RPM-builder/rpmbuild/RPMS/x86_64/
sudo make run-docker
Resulting RPM will be stored in
./RPMS/
sudo yum -y install /opt/HAProxy-2-RPM-builder/rpmbuild/RPMS/x86_64/haproxy-2.7.2-1.el7.x86_64.rpm
or, if you build *.rpm with Docker:
sudo yum -y install RPMS/haproxy-2.7.2-1.el7.x86_64.rpm
haproxy -v
Must be like this:
HAProxy version 2.7.2-7e295dd 2023/01/20 - https://haproxy.org/
Status: stable branch - will stop receiving fixes around Q1 2024.
Known bugs: http://www.haproxy.org/bugs/bugs-2.7.2.html
Check SELINUX:
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
After installation you can access a stats page without authenticating via the URL: http://<YourHAProxyServer>:9000/haproxy_stats
[/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