HAproxy 安裝

2013-06-27 11:51

 

1. 解壓縮 HAproxy Source Code

 
[root@SIPDB2 mplususer]# tar zxvf haproxy-1.4.24.tar.gz
haproxy-1.4.24/
haproxy-1.4.24/.gitignore
haproxy-1.4.24/CHANGELOG
haproxy-1.4.24/LICENSE
haproxy-1.4.24/Makefile
haproxy-1.4.24/Makefile.bsd
haproxy-1.4.24/Makefile.osx
haproxy-1.4.24/README
haproxy-1.4.24/ROADMAP
haproxy-1.4.24/SUBVERS
haproxy-1.4.24/TODO
haproxy-1.4.24/VERDATE
haproxy-1.4.24/VERSION
haproxy-1.4.24/contrib/
haproxy-1.4.24/contrib/base64/
haproxy-1.4.24/contrib/base64/base64rev-gen.c
haproxy-1.4.24/contrib/halog/
haproxy-1.4.24/contrib/halog/Makefile
haproxy-1.4.24/contrib/halog/fgets2.c
haproxy-1.4.24/contrib/halog/halog.c
haproxy-1.4.24/contrib/iprange/
haproxy-1.4.24/contrib/iprange/Makefile
haproxy-1.4.24/contrib/iprange/iprange.c
haproxy-1.4.24/contrib/netsnmp-perl/
haproxy-1.4.24/contrib/netsnmp-perl/README
haproxy-1.4.24/contrib/netsnmp-perl/cacti_data_query_haproxy_backends.xml
haproxy-1.4.24/contrib/netsnmp-perl/cacti_data_query_haproxy_frontends.xml
haproxy-1.4.24/contrib/netsnmp-perl/haproxy.pl
haproxy-1.4.24/contrib/netsnmp-perl/haproxy_backend.xml
haproxy-1.4.24/contrib/netsnmp-perl/haproxy_frontend.xml
haproxy-1.4.24/contrib/netsnmp-perl/haproxy_socket.xml
haproxy-1.4.24/contrib/selinux/
haproxy-1.4.24/contrib/selinux/README
haproxy-1.4.24/contrib/selinux/haproxy.fc
haproxy-1.4.24/contrib/selinux/haproxy.if
haproxy-1.4.24/contrib/selinux/haproxy.te
haproxy-1.4.24/doc/
haproxy-1.4.24/doc/acl.fig
haproxy-1.4.24/doc/architecture.txt
haproxy-1.4.24/doc/configuration.txt
haproxy-1.4.24/doc/design-thoughts/
haproxy-1.4.24/doc/design-thoughts/backends-v0.txt
haproxy-1.4.24/doc/design-thoughts/backends.txt
haproxy-1.4.24/doc/design-thoughts/be-fe-changes.txt
haproxy-1.4.24/doc/design-thoughts/buffers.fig
haproxy-1.4.24/doc/design-thoughts/config-language.txt
haproxy-1.4.24/doc/design-thoughts/cttproxy-changes.txt
haproxy-1.4.24/doc/design-thoughts/how-it-works.txt
haproxy-1.4.24/doc/design-thoughts/http_load_time.url
haproxy-1.4.24/doc/design-thoughts/sess_par_sec.txt
haproxy-1.4.24/doc/gpl.txt
haproxy-1.4.24/doc/haproxy-en.txt
haproxy-1.4.24/doc/haproxy-fr.txt
haproxy-1.4.24/doc/haproxy.1
haproxy-1.4.24/doc/internals/
haproxy-1.4.24/doc/internals/connect-status.txt
haproxy-1.4.24/doc/internals/connection-header.txt
haproxy-1.4.24/doc/internals/connection-scale.txt
haproxy-1.4.24/doc/internals/header-parser-speed.txt
haproxy-1.4.24/doc/internals/header-tree.txt
haproxy-1.4.24/doc/internals/http-cookies.txt
haproxy-1.4.24/doc/internals/http-docs.txt
haproxy-1.4.24/doc/internals/http-parsing.txt
haproxy-1.4.24/doc/internals/naming.txt
haproxy-1.4.24/doc/internals/repartition-be-fe-fi.txt
haproxy-1.4.24/doc/internals/stats-v2.txt
haproxy-1.4.24/doc/internals/stream-sock-states.fig
haproxy-1.4.24/doc/internals/todo.cttproxy
haproxy-1.4.24/doc/lgpl.txt
haproxy-1.4.24/doc/queuing.fig
haproxy-1.4.24/ebtree/
haproxy-1.4.24/ebtree/compiler.h
haproxy-1.4.24/ebtree/eb32tree.c
haproxy-1.4.24/ebtree/eb32tree.h
haproxy-1.4.24/ebtree/eb64tree.c
haproxy-1.4.24/ebtree/eb64tree.h
haproxy-1.4.24/ebtree/ebimtree.c
haproxy-1.4.24/ebtree/ebimtree.h
haproxy-1.4.24/ebtree/ebistree.c
haproxy-1.4.24/ebtree/ebistree.h
haproxy-1.4.24/ebtree/ebmbtree.c
haproxy-1.4.24/ebtree/ebmbtree.h
haproxy-1.4.24/ebtree/ebpttree.c
haproxy-1.4.24/ebtree/ebpttree.h
haproxy-1.4.24/ebtree/ebsttree.c
haproxy-1.4.24/ebtree/ebsttree.h
haproxy-1.4.24/ebtree/ebtree.c
haproxy-1.4.24/ebtree/ebtree.h
haproxy-1.4.24/examples/
haproxy-1.4.24/examples/acl-content-sw.cfg
haproxy-1.4.24/examples/auth.cfg
haproxy-1.4.24/examples/build.cfg
haproxy-1.4.24/examples/check
haproxy-1.4.24/examples/check.conf
haproxy-1.4.24/examples/config.rc.haproxy
haproxy-1.4.24/examples/content-sw-sample.cfg
haproxy-1.4.24/examples/cttproxy-src.cfg
haproxy-1.4.24/examples/debug2ansi
haproxy-1.4.24/examples/debug2html
haproxy-1.4.24/examples/debugfind
haproxy-1.4.24/examples/errorfiles/
haproxy-1.4.24/examples/errorfiles/400.http
haproxy-1.4.24/examples/errorfiles/403.http
haproxy-1.4.24/examples/errorfiles/408.http
haproxy-1.4.24/examples/errorfiles/500.http
haproxy-1.4.24/examples/errorfiles/502.http
haproxy-1.4.24/examples/errorfiles/503.http
haproxy-1.4.24/examples/errorfiles/504.http
haproxy-1.4.24/examples/errorfiles/README
haproxy-1.4.24/examples/examples.cfg
haproxy-1.4.24/examples/haproxy-1.1.21-flx.1.pkg
haproxy-1.4.24/examples/haproxy.cfg
haproxy-1.4.24/examples/haproxy.init
haproxy-1.4.24/examples/haproxy.spec
haproxy-1.4.24/examples/haproxy.vim
haproxy-1.4.24/examples/init.haproxy
haproxy-1.4.24/examples/init.haproxy.flx0
haproxy-1.4.24/examples/linux-2.4.21-40.EL-custom.diff
haproxy-1.4.24/examples/option-http_proxy.cfg
haproxy-1.4.24/examples/rc.highsock
haproxy-1.4.24/examples/stats_haproxy.sh
haproxy-1.4.24/examples/tarpit.cfg
haproxy-1.4.24/examples/test-section-kw.cfg
haproxy-1.4.24/examples/url-switching.cfg
haproxy-1.4.24/include/
haproxy-1.4.24/include/common/
haproxy-1.4.24/include/common/appsession.h
haproxy-1.4.24/include/common/base64.h
haproxy-1.4.24/include/common/cfgparse.h
haproxy-1.4.24/include/common/compat.h
haproxy-1.4.24/include/common/compiler.h
haproxy-1.4.24/include/common/config.h
haproxy-1.4.24/include/common/debug.h
haproxy-1.4.24/include/common/defaults.h
haproxy-1.4.24/include/common/epoll.h
haproxy-1.4.24/include/common/errors.h
haproxy-1.4.24/include/common/memory.h
haproxy-1.4.24/include/common/mini-clist.h
haproxy-1.4.24/include/common/rbtree.h
haproxy-1.4.24/include/common/regex.h
haproxy-1.4.24/include/common/sessionhash.h
haproxy-1.4.24/include/common/standard.h
haproxy-1.4.24/include/common/template.h
haproxy-1.4.24/include/common/ticks.h
haproxy-1.4.24/include/common/time.h
haproxy-1.4.24/include/common/tools.h
haproxy-1.4.24/include/common/uri_auth.h
haproxy-1.4.24/include/common/version.h
haproxy-1.4.24/include/import/
haproxy-1.4.24/include/import/ip_tproxy.h
haproxy-1.4.24/include/proto/
haproxy-1.4.24/include/proto/acl.h
haproxy-1.4.24/include/proto/auth.h
haproxy-1.4.24/include/proto/backend.h
haproxy-1.4.24/include/proto/buffers.h
haproxy-1.4.24/include/proto/checks.h
haproxy-1.4.24/include/proto/client.h
haproxy-1.4.24/include/proto/cttproxy.h
haproxy-1.4.24/include/proto/dumpstats.h
haproxy-1.4.24/include/proto/fd.h
haproxy-1.4.24/include/proto/freq_ctr.h
haproxy-1.4.24/include/proto/hdr_idx.h
haproxy-1.4.24/include/proto/httperr.h
haproxy-1.4.24/include/proto/lb_chash.h
haproxy-1.4.24/include/proto/lb_fwlc.h
haproxy-1.4.24/include/proto/lb_fwrr.h
haproxy-1.4.24/include/proto/lb_map.h
haproxy-1.4.24/include/proto/log.h
haproxy-1.4.24/include/proto/pattern.h
haproxy-1.4.24/include/proto/pipe.h
haproxy-1.4.24/include/proto/port_range.h
haproxy-1.4.24/include/proto/proto_http.h
haproxy-1.4.24/include/proto/proto_tcp.h
haproxy-1.4.24/include/proto/proto_uxst.h
haproxy-1.4.24/include/proto/protocols.h
haproxy-1.4.24/include/proto/proxy.h
haproxy-1.4.24/include/proto/queue.h
haproxy-1.4.24/include/proto/server.h
haproxy-1.4.24/include/proto/session.h
haproxy-1.4.24/include/proto/signal.h
haproxy-1.4.24/include/proto/stick_table.h
haproxy-1.4.24/include/proto/stream_interface.h
haproxy-1.4.24/include/proto/stream_sock.h
haproxy-1.4.24/include/proto/task.h
haproxy-1.4.24/include/proto/template.h
haproxy-1.4.24/include/types/
haproxy-1.4.24/include/types/acl.h
haproxy-1.4.24/include/types/auth.h
haproxy-1.4.24/include/types/backend.h
haproxy-1.4.24/include/types/buffers.h
haproxy-1.4.24/include/types/capture.h
haproxy-1.4.24/include/types/checks.h
haproxy-1.4.24/include/types/counters.h
haproxy-1.4.24/include/types/fd.h
haproxy-1.4.24/include/types/freq_ctr.h
haproxy-1.4.24/include/types/global.h
haproxy-1.4.24/include/types/hdr_idx.h
haproxy-1.4.24/include/types/httperr.h
haproxy-1.4.24/include/types/lb_chash.h
haproxy-1.4.24/include/types/lb_fwlc.h
haproxy-1.4.24/include/types/lb_fwrr.h
haproxy-1.4.24/include/types/lb_map.h
haproxy-1.4.24/include/types/log.h
haproxy-1.4.24/include/types/pattern.h
haproxy-1.4.24/include/types/pipe.h
haproxy-1.4.24/include/types/port_range.h
haproxy-1.4.24/include/types/proto_http.h
haproxy-1.4.24/include/types/proto_tcp.h
haproxy-1.4.24/include/types/protocols.h
haproxy-1.4.24/include/types/proxy.h
haproxy-1.4.24/include/types/queue.h
haproxy-1.4.24/include/types/server.h
haproxy-1.4.24/include/types/session.h
haproxy-1.4.24/include/types/signal.h
haproxy-1.4.24/include/types/stick_table.h
haproxy-1.4.24/include/types/stream_interface.h
haproxy-1.4.24/include/types/task.h
haproxy-1.4.24/include/types/template.h
haproxy-1.4.24/src/
haproxy-1.4.24/src/acl.c
haproxy-1.4.24/src/appsession.c
haproxy-1.4.24/src/auth.c
haproxy-1.4.24/src/backend.c
haproxy-1.4.24/src/base64.c
haproxy-1.4.24/src/buffers.c
haproxy-1.4.24/src/cfgparse.c
haproxy-1.4.24/src/checks.c
haproxy-1.4.24/src/client.c
haproxy-1.4.24/src/cttproxy.c
haproxy-1.4.24/src/dumpstats.c
haproxy-1.4.24/src/ev_epoll.c
haproxy-1.4.24/src/ev_kqueue.c
haproxy-1.4.24/src/ev_poll.c
haproxy-1.4.24/src/ev_select.c
haproxy-1.4.24/src/ev_sepoll.c
haproxy-1.4.24/src/fd.c
haproxy-1.4.24/src/freq_ctr.c
haproxy-1.4.24/src/haproxy.c
haproxy-1.4.24/src/hdr_idx.c
haproxy-1.4.24/src/lb_chash.c
haproxy-1.4.24/src/lb_fwlc.c
haproxy-1.4.24/src/lb_fwrr.c
haproxy-1.4.24/src/lb_map.c
haproxy-1.4.24/src/log.c
haproxy-1.4.24/src/memory.c
haproxy-1.4.24/src/pattern.c
haproxy-1.4.24/src/pipe.c
haproxy-1.4.24/src/proto_http.c
haproxy-1.4.24/src/proto_tcp.c
haproxy-1.4.24/src/proto_uxst.c
haproxy-1.4.24/src/protocols.c
haproxy-1.4.24/src/proxy.c
haproxy-1.4.24/src/queue.c
haproxy-1.4.24/src/rbtree.c
haproxy-1.4.24/src/regex.c
haproxy-1.4.24/src/server.c
haproxy-1.4.24/src/session.c
haproxy-1.4.24/src/sessionhash.c
haproxy-1.4.24/src/signal.c
haproxy-1.4.24/src/standard.c
haproxy-1.4.24/src/stick_table.c
haproxy-1.4.24/src/stream_interface.c
haproxy-1.4.24/src/stream_sock.c
haproxy-1.4.24/src/task.c
haproxy-1.4.24/src/time.c
haproxy-1.4.24/src/uri_auth.c
haproxy-1.4.24/tests/
haproxy-1.4.24/tests/0000-debug-stats.diff
haproxy-1.4.24/tests/active-sh.cfg
haproxy-1.4.24/tests/active-srv.cfg
haproxy-1.4.24/tests/backup-all-sh.cfg
haproxy-1.4.24/tests/backup-all.cfg
haproxy-1.4.24/tests/backup-first.cfg
haproxy-1.4.24/tests/backup-second-sh.cfg
haproxy-1.4.24/tests/backup-second.cfg
haproxy-1.4.24/tests/basic-test.cfg
haproxy-1.4.24/tests/defaults.cfg
haproxy-1.4.24/tests/filltab25.c
haproxy-1.4.24/tests/hash_results.txt
haproxy-1.4.24/tests/httpterm-basic.cfg
haproxy-1.4.24/tests/io_limits.txt
haproxy-1.4.24/tests/ip-hash.c
haproxy-1.4.24/tests/reset.c
haproxy-1.4.24/tests/sessionhash_test.c
haproxy-1.4.24/tests/sockstat.txt
haproxy-1.4.24/tests/test-acl.cfg
haproxy-1.4.24/tests/test-backlog.cfg
haproxy-1.4.24/tests/test-balance.cfg
haproxy-1.4.24/tests/test-check-cpu.cfg
haproxy-1.4.24/tests/test-check-expect.cfg
haproxy-1.4.24/tests/test-connection.cfg
haproxy-1.4.24/tests/test-cookie-appsess.cfg
haproxy-1.4.24/tests/test-cookie-indirect.cfg
haproxy-1.4.24/tests/test-cookie-insert.cfg
haproxy-1.4.24/tests/test-cookie-passive.cfg
haproxy-1.4.24/tests/test-cookie-prefix.cfg
haproxy-1.4.24/tests/test-cookie-rewrite.cfg
haproxy-1.4.24/tests/test-disable-404.cfg
haproxy-1.4.24/tests/test-fsm.cfg
haproxy-1.4.24/tests/test-fwlc.cfg
haproxy-1.4.24/tests/test-fwrr.cfg
haproxy-1.4.24/tests/test-http-send-name-hdr.cfg
haproxy-1.4.24/tests/test-inspect-smtp.cfg
haproxy-1.4.24/tests/test-inspect-ssl.cfg
haproxy-1.4.24/tests/test-log.cfg
haproxy-1.4.24/tests/test-map-ports.cfg
haproxy-1.4.24/tests/test-pollers.cfg
haproxy-1.4.24/tests/test-redir.cfg
haproxy-1.4.24/tests/test-redirect.cfg
haproxy-1.4.24/tests/test-retries.cfg
haproxy-1.4.24/tests/test-sched.cfg
haproxy-1.4.24/tests/test-sql.cfg
haproxy-1.4.24/tests/test-status.cfg
haproxy-1.4.24/tests/test-time.cfg
haproxy-1.4.24/tests/test-timeout.cfg
haproxy-1.4.24/tests/test-url-hash.cfg
haproxy-1.4.24/tests/test-valid-names.cfg
haproxy-1.4.24/tests/test.c
haproxy-1.4.24/tests/test_hashes.c
haproxy-1.4.24/tests/test_pools.c
haproxy-1.4.24/tests/testinet.c
haproxy-1.4.24/tests/uri_hash.c

 

2. 編譯 HAproxy

 
[root@SIPDB2 haproxy-1.4.24]# make TARGET=linux26 ARCH=x86_86
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" \
              -DBUILD_TARGET='"linux26"' \
              -DBUILD_ARCH='"x86_86"' \
              -DBUILD_CPU='"generic"' \
              -DBUILD_CC='"gcc"' \
              -DBUILD_CFLAGS='"-O2 -g -fno-strict-aliasing"' \
              -DBUILD_OPTIONS='""' \
               -c -o src/haproxy.o src/haproxy.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/sessionhash.o src/sessionhash.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/base64.o src/base64.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/protocols.o src/protocols.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/uri_auth.o src/uri_auth.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/standard.o src/standard.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/buffers.o src/buffers.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/log.o src/log.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/task.o src/task.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/time.o src/time.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/fd.o src/fd.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/pipe.o src/pipe.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/regex.o src/regex.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/cfgparse.o src/cfgparse.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/server.o src/server.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/checks.o src/checks.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/queue.o src/queue.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/client.o src/client.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/proxy.o src/proxy.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/stick_table.o src/stick_table.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/proto_uxst.o src/proto_uxst.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/proto_http.o src/proto_http.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/stream_sock.o src/stream_sock.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/appsession.o src/appsession.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/backend.o src/backend.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/lb_chash.o src/lb_chash.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/lb_fwlc.o src/lb_fwlc.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/lb_fwrr.o src/lb_fwrr.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/lb_map.o src/lb_map.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/stream_interface.o src/stream_interface.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/dumpstats.o src/dumpstats.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/proto_tcp.o src/proto_tcp.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/session.o src/session.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/hdr_idx.o src/hdr_idx.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/ev_select.o src/ev_select.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/signal.o src/signal.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/acl.o src/acl.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/pattern.o src/pattern.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/memory.o src/memory.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/freq_ctr.o src/freq_ctr.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/auth.o src/auth.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/ev_poll.o src/ev_poll.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/ev_epoll.o src/ev_epoll.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o src/ev_sepoll.o src/ev_sepoll.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o ebtree/ebtree.o ebtree/ebtree.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o ebtree/eb32tree.o ebtree/eb32tree.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o ebtree/eb64tree.o ebtree/eb64tree.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o ebtree/ebmbtree.o ebtree/ebmbtree.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o ebtree/ebsttree.o ebtree/ebsttree.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o ebtree/ebimtree.o ebtree/ebimtree.c
gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing       -DTPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DENABLE_SEPOLL -DNETFILTER -DUSE_GETSOCKNAME  -DCONFIG_HAPROXY_VERSION=\"1.4.24\" -DCONFIG_HAPROXY_DATE=\"2013/06/17\" -c -o ebtree/ebistree.o ebtree/ebistree.c
gcc  -g -o haproxy src/haproxy.o src/sessionhash.o src/base64.o src/protocols.o src/uri_auth.o src/standard.o src/buffers.o src/log.o src/task.o src/time.o src/fd.o src/pipe.o src/regex.o src/cfgparse.o src/server.o src/checks.o src/queue.o src/client.o src/proxy.o src/stick_table.o src/proto_uxst.o src/proto_http.o src/stream_sock.o src/appsession.o src/backend.o src/lb_chash.o src/lb_fwlc.o src/lb_fwrr.o src/lb_map.o src/stream_interface.o src/dumpstats.o src/proto_tcp.o src/session.o src/hdr_idx.o src/ev_select.o src/signal.o src/acl.o src/pattern.o src/memory.o src/freq_ctr.o src/auth.o src/ev_poll.o src/ev_epoll.o src/ev_sepoll.o ebtree/ebtree.o ebtree/eb32tree.o ebtree/eb64tree.o ebtree/ebmbtree.o ebtree/ebsttree.o ebtree/ebimtree.o ebtree/ebistree.o   -lcrypt
 

 

3.安裝 HAproxy

 
[root@SIPDB2 haproxy-1.4.24]# make install
install -d /usr/local/sbin
install haproxy /usr/local/sbin
install -d /usr/local/share/man/man1
install -m 644 doc/haproxy.1 /usr/local/share/man/man1
install -d /usr/local/doc/haproxy
for x in configuration architecture haproxy-en haproxy-fr; do \
                install -m 644 doc/$x.txt /usr/local/doc/haproxy ; \
        done
 

 

4. 執行 HAproxy

 
[root@SIPDB2 haproxy-1.4.24]# cp haproxy.cfg /root/haproxy-1.4.24/
[root@SIPDB2 haproxy-1.4.24]# vi haproxy.cfg
[root@SIPDB2 haproxy-1.4.24]# haproxy -f haproxy.cfg