Skip to content

Instantly share code, notes, and snippets.

@rms1000watt
Last active June 22, 2016 17:28
Show Gist options
  • Save rms1000watt/3c9d5a44a7977a81cc311ba9137aef50 to your computer and use it in GitHub Desktop.
Save rms1000watt/3c9d5a44a7977a81cc311ba9137aef50 to your computer and use it in GitHub Desktop.
HAProxy 1.6 Install on Ubuntu 14.04
# Works fine on ubuntu 14.04. Gave me issues on 16.04.
sudo apt-get update -y
sudo apt-get upgrade -y
sudo add-apt-repository ppa:vbernat/haproxy-1.6
sudo apt-get dist-upgrade -y
sudo apt-get install haproxy -y
# Edit the haproxy config
sudo nano /etc/haproxy/haproxy.cfg
# frontend front_01
# bind *:8080
# default_backend backend_01
#
# backend backend_01
# server s01 192.168.1.3:8080 check
# server s02 192.168.1.4:8080 check
sudo service haproxy restart
# If nothing through stdout then edit
sudo nano /etc/default/haproxy
# ENABLED=1
sudo service haproxy restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment