In this article we will talk about how to get HAProxy 2.4 installed and setup on Ubuntu
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.
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.
To verify that HAProxy is installed and check the version, you will input the command:
To access the global config for haproxy you will use the command:
SUPPORT MY WORK
- Kevin Stevenson
- Tuesday, Nov 23, 2021