![](https://phasedlogix.com/wp-content/uploads/2024/04/haproxy-thumbnail.jpg)
Introduction
In this article we will talk about how to get HAProxy 2.4 installed and setup on Ubuntu
Download
To download HAProxy’s latest release, you will go to https://haproxy.debian.net. To follow this article you will choose Ubuntu, then Focal (20.04 LTS), and our HAProxy version will be 2.4-stables (LTS). This will provide you with the exact commands needed for installing on the versions you will need.
Installing
What you must first do is get SSH’d into your server. Once done, we will use the following commands that can also be found on the site listed above.
sudo apt-get install --no-install-recommends software-properties-common
sudo add-apt-repository ppa:vbernat/haproxy-2.4
sudo apt update
sudo apt-get install haproxy=2.4.\*
After inputting all of those commands, everything you need should now be installed.
Accessing HAProxy
To verify that HAProxy is installed and check the version, you will input the command:
haproxy -v
To access the global config for haproxy you will use the command:
nano /etc/haproxy/haproxy.cfg
Full Video
SUPPORT MY WORK
TECH I USE AND RECOMMEND