Install HAProxy on Amazon Linux 2

Apr 13, 2022 · 1 min read · Post a comment
Install HAProxy on Amazon Linux 2

HAProxy is one of the best free and open source software for using high availability load balancing and reverse proxy. It’s most suitable for HTTP and TCP based applications. Let’s see how to install haproxy on amazon linux 2.


  • Amazon Linux 2
  • sudo access

Install HAProxy on Amazon Linux 2

Step 1. Update the Amazon Linux 2 packages.

sudo yum update

Step 2. Install haproxy.

sudo yum install haproxy

Step 3. If you want to check the default haproxy configuration, run:

cat /etc/haproxy/haproxy.cfg

Step 4. To verify the version, run:

haproxy -v

Example output:

HA-Proxy version 1.5.18 2016/05/10
Copyright 2000-2016 Willy Tarreau <willy@haproxy.org>


Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.