HAProxy 2.4 Install and Basic Setup On Ubuntu 20.04 LTS

blog-image

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

Hire US

TECH I USE AND RECOMMEND
Tech Kits
Domain Registrar
Digital Ocean CloudServer

  • Kevin Stevenson
  • Tuesday, Nov 23, 2021
View All Post