安装Haproxy:
下载
wget https://fossies.org/linux/misc/haproxy-1.8.3.tar.gz tar -zxf haproxy-1.8.3.tar.g cd haproxy-1.8.3/ make TARGET=linux2628 ARCH=x86_64 PREFIX=/usr/local/haproxy
make install PREFIX=/usr/local/haproxy
#参数说明
TARGET=linux26 #内核版本,使用uname -r查看内核,如:2.6.18-371.el5,此时该参数就为linux26;kernel 大于2.6.28的用:TARGET=linux2628
ARCH=x86_64 #系统位数