说不定要用到的塞。。。。
1.wget http://www.haproxy.org/download/1.5/src/haproxy-1.5.12.tar.gz
2.tar -zxvf haproxy-1.5.12.tar.gz
3.cd haproxy-1.5.12
4.make TARGET=linux26 PREFIX=/usr/local/haproxy install
5.mkdir -p /usr/local/haproxy/{conf,logs}
6.vim /usr/local/haproxy/conf/haproxy.cfg
global log 127.0.0.1 local0 info #[err warning info debug] maxconn user root group root daemon nbproc pidfile /usr/local/haproxy/logs/haproxy.pid defaults maxconn timeout connect timeout client timeout server listen admin_stats bind mode http log 127.0.0.1 local0 err stats uri /admin?stats
7.sbin/haproxy -f conf/haproxy.cfg
8.当当当当。。。
其它配置深入,再议哈