首页 > 其他 > 详细

haproxy

时间:2014-03-15 12:35:05      阅读:551      评论:0      收藏:0      [点我收藏+]
bubuko.com,布布扣
wget http://haproxy.1wt.eu/download/1.4/src/haproxy-1.4.24.tar.gz

tar zxvf haproxy-1.4.24.tar.gz
cd haproxy
-1.4.24
uname -a
make TARGET=linux26 PREFIX=/usr/local/haproxy

make install PREFIX=/usr/local/haproxy
bubuko.com,布布扣

 

vi /usr/local/haproxy/haproxy.cfg 

 

bubuko.com,布布扣
global
    maxconn 51200
    chroot /usr/local/haproxy
    uid 99
    gid 99
    daemon
    nbproc 2
    pidfile /usr/local/haproxy/haproxy.pid

defaults
        mode http
        option redispatch
        option abortonclose
        timeout connect 5000ms
        timeout client 10000ms
        timeout server 10000ms
        log 127.0.0.1 local0 err #[err warning info debug]
        balance roundrobin

listen admin_stats
        bind 0.0.0.0:5888
        option httplog
        stats refresh 30s
        stats uri /stats
        stats realm Haproxy Manager
        stats auth admin:admin

listen test1
        bind :6700
        mode tcp
        server t1 192.168.1.101:8881
        server t2 192.168.1.102:8881
bubuko.com,布布扣

haproxy,布布扣,bubuko.com

haproxy

原文:http://www.cnblogs.com/fr5s/p/3600974.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!