Install and configure HA Proxy on Ubuntu

Install and configure HA Proxy on Ubuntu

Installing the latest HA Proxy

You could use sudo apt-get install haproxy, but the version in the repo is likely not the latest stable release. To get the latest stable release, check on the HA Proxy site which is the latest. At the time of this writing it was 2.5.

You can use PPA (personal package archive) on Ubuntu to get the latest version:

sudo apt install --no-install-recommends software-properties-common
sudo add-apt-repository ppa:vbernat/haproxy-2.5 -y
sudo apt install haproxy=2.5.\*

Adding =2.5.\* to the end tells apt that we want to maintain the latest version of HAProxy in the 2.5 branch, so if there are future updates in that branch, you’ll get them when you do an apt upgrade.



Leave a Reply

Your email address will not be published. Required fields are marked *