Skip to content

Instantly share code, notes, and snippets.

@james-huston
Last active August 29, 2015 14:04
Show Gist options
  • Save james-huston/1ae4fd894be8a019e952 to your computer and use it in GitHub Desktop.
Save james-huston/1ae4fd894be8a019e952 to your computer and use it in GitHub Desktop.
Install haproxy on ec2 instance
sudo yum install gcc make openssl openssl-devel pcre-devel
cd /opt
sudo wget http://www.haproxy.org/download/1.5/src/haproxy-1.5.3.tar.gz
sudo tar -xzvf haproxy-1.5.3.tar.gz
cd haproxy-1.5.3
sudo make CPU="native" TARGET="linux2628" USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1 USE_REGPARM=1
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment