说不定要用到的塞。。。。
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 4096 user root group root daemon nbproc 4 pidfile /usr/local/haproxy/logs/haproxy.pid defaults maxconn 2000 timeout connect 5000 timeout client 30000 timeout server 30000 listen admin_stats bind 0.0.0.0:1080 mode http log 127.0.0.1 local0 err stats uri /admin?stats
7.sbin/haproxy -f conf/haproxy.cfg
8.当当当当。。。
其它配置深入,再议哈
时间: 2024-12-30 01:08:40