[root@master ~]# cd /opt/
[root@master opt]# clear
[root@master opt]# ls
alibaba-rocketmq grafana-2.5.0 httpd-2.2.23.tar.gz mongodb-linux-x86_64-1.6.3.tgz
php-5.4.10.tar.gz zookeeper-3.4.6.tar.gz alibaba-rocketmq-3.2.6.tar.gz
grafana-2.5.0.linux-x64.tar.gz libevent-1.4.14b-stable nagios solr-6.2.0
apache-activemq-5.8.0 hadoop libevent-1.4.14b-stable.tar.gz nagios-3.4.3.tar.gz
solr-6.2.0.tgz apache-activemq-5.8.0-bin.tar.gz hadoop_data memcached
nagios-plugins-1.4.13 SRC cacti-0.8.8b.tar.gz haproxy-1.5.0.tar.gz
memcached-1.4.25.tar.gz nagios-plugins-1.4.13.tar.gz tomcat flume1.6
httpd-2.2.23 mongodb php-5.4.10 zookeeper-3.4.6
[root@master opt]# tar -zxvf haproxy-1.5.0.tar.gz
[root@master haproxy-1.5.0]# make
Due to too many reports of suboptimized setups, building without
specifying the target is no longer supported. Please specify the
target OS in the TARGET variable, in the following form:
make TARGET=xxx
Please choose the target among the following supported list :
linux2628, linux26, linux24, linux24e, linux22, solaris
freebsd, openbsd, cygwin, custom, generic
Use "generic" if you don't want any optimization, "custom" if you
want to precisely tweak every option, or choose the target which
matches your OS the most in order to gain the maximum performance
out of it. Please check the Makefile in case of doubts.
make: *** [all] Error 1
[root@master haproxy-1.5.0]# uname -a
Linux master 2.6.18-128.el5 #1 SMP Wed Jan 21 10:41:14 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
[root@master haproxy-1.5.0]# make TARGET=linux2628
src/listener.o: In function `listener_accept':
/opt/haproxy-1.5.0/src/listener.c:369: undefined reference to `accept4'
collect2: ld returned 1 exit status
make: *** [haproxy] Error 1
[root@master haproxy-1.5.0]# uname -a
Linux master 2.6.18-128.el5 #1 SMP Wed Jan 21 10:41:14 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
[root@master haproxy-1.5.0]# make
Due to too many reports of suboptimized setups, building without
specifying the target is no longer supported. Please specify the
target OS in the TARGET variable, in the following form:
make TARGET=xxx
Please choose the target among the following supported list :
linux2628, linux26, linux24, linux24e, linux22, solaris
freebsd, openbsd, cygwin, custom, generic
Use "generic" if you don't want any optimization, "custom" if you
want to precisely tweak every option, or choose the target which
matches your OS the most in order to gain the maximum performance
out of it. Please check the Makefile in case of doubts.
make: *** [all] Error 1
[root@master haproxy-1.5.0]# make TARGET=linux26
gcc -g -o haproxy src/haproxy.o src/sessionhash.o src/base64.o src/protocol.o src/uri_auth.o src/standard.o src/buffer.o src/log.o src/task.o src/chunk.o src/channel.o src/listener.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/frontend.o src/proxy.o src/peers.o src/arg.o src/stick_table.o src/proto_uxst.o src/connection.o src/proto_http.o src/raw_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/lb_fas.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/sample.o src/memory.o src/freq_ctr.o src/auth.o src/compression.o src/payload.o src/hash.o src/pattern.o src/map.o src/ev_poll.o src/ev_epoll.o ebtree/ebtree.o ebtree/eb32tree.o ebtree/eb64tree.o ebtree/ebmbtree.o ebtree/ebsttree.o ebtree/ebimtree.o ebtree/ebistree.o -lcrypt
src/listener.o: In function `listener_accept':
/opt/haproxy-1.5.0/src/listener.c:369: undefined reference to `accept4'
collect2: ld returned 1 exit status
make: *** [haproxy] Error 1
[root@master haproxy-1.5.0]# makeclean
-bash: makeclean: command not found
[root@master haproxy-1.5.0]# make clean
rm -f *.[oas] src/*.[oas] ebtree/*.[oas] haproxy test
for dir in . src include/* doc ebtree; do rm -f $dir/*~ $dir/*.rej $dir/core; done
rm -f haproxy-1.5.0.tar.gz haproxy-1.5.0.tar.gz
rm -f haproxy-1.5.0 haproxy-1.5.0 nohup.out gmon.out
rm -f haproxy-systemd-wrapper
[root@master haproxy-1.5.0]# make TARGET=generic
gcc -g -o haproxy src/haproxy.o src/sessionhash.o src/base64.o src/protocol.o src/uri_auth.o src/standard.o src/buffer.o src/log.o src/task.o src/chunk.o src/channel.o src/listener.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/frontend.o src/proxy.o src/peers.o src/arg.o src/stick_table.o src/proto_uxst.o src/connection.o src/proto_http.o src/raw_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/lb_fas.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/sample.o src/memory.o src/freq_ctr.o src/auth.o src/compression.o src/payload.o src/hash.o src/pattern.o src/map.o src/ev_poll.o ebtree/ebtree.o ebtree/eb32tree.o ebtree/eb64tree.o ebtree/ebmbtree.o ebtree/ebsttree.o ebtree/ebimtree.o ebtree/ebistree.o
[root@master haproxy-1.5.0]# make install
gcc -Iinclude -Iebtree -Wall -O2 -g -fno-strict-aliasing -DENABLE_POLL -DCONFIG_HAPROXY_VERSION=\"1.5.0\" -DCONFIG_HAPROXY_DATE=\"2014/06/19\" \
-DSBINDIR='"/usr/local/sbin"' \
-c -o src/haproxy-systemd-wrapper.o src/haproxy-systemd-wrapper.c
gcc -g -o haproxy-systemd-wrapper src/haproxy-systemd-wrapper.o
install -d /usr/local/sbin
install haproxy /usr/local/sbin
install haproxy-systemd-wrapper /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
[root@master haproxy-1.5.0]# ls
CHANGELOG contrib doc ebtree examples haproxy haproxy-systemd-wrapper include LICENSE Makefile README ROADMAP src SUBVERS tests VERDATE VERSION
[root@master haproxy-1.5.0]# cd contrib/
[root@master contrib]# ls
base64 halog ip6range iprange netsnmp-perl selinux systemd trace
[root@master contrib]# cd ../
[root@master haproxy-1.5.0]# haproxy
HA-Proxy version 1.5.0 2014/06/19
Copyright 2000-2014 Willy Tarreau <w@1wt.eu>
Usage : haproxy [-f <cfgfile>]* [ -vdVD ] [ -n <maxconn> ] [ -N <maxpconn> ]
[ -p <pidfile> ] [ -m <max megs> ] [ -C <dir> ]
-v displays version ; -vv shows known build options.
-d enters debug mode ; -db only disables background mode.
-dM[<byte>] poisons memory with <byte> (defaults to 0x50)
-V enters verbose mode (disables quiet mode)
-D goes daemon ; -C changes to <dir> before loading files.
-q quiet mode : don't display messages
-c check mode : only check config files and exit
-n sets the maximum total # of connections (2000)
-m limits the usable amount of memory (in MB)
-N sets the default, per-proxy maximum # of connections (2000)
-L set local peer name (default to hostname)
-p writes pids of all children to this file
-dp disables poll() usage even when available
-dV disables SSL verify on servers side
-sf/-st [pid ]* finishes/terminates old pids. Must be last arguments.
[root@master haproxy-1.5.0]#
相关推荐
赠送jar包:netty-codec-haproxy-4.1.73.Final.jar; 赠送原API文档:netty-codec-haproxy-4.1.73.Final-javadoc.jar; 赠送源代码:netty-codec-haproxy-4.1.73.Final-sources.jar; 赠送Maven依赖信息文件:netty-...
对于给定的haproxy-2.8.0版本,用户需要执行以下步骤进行安装: 1. **解压文件**:使用`tar -zxvf haproxy-2.8.0.tar.gz`命令解压缩文件到当前目录。 2. **移动或复制文件**:将解压后的haproxy目录移动或复制到...
haproxy-2.3.2-win64是一款专为Windows 64位操作系统设计的高性能、免费的负载均衡器和反向代理软件。由Cygwin64编译环境构建,它允许在Windows平台上实现与Linux系统类似的Unix-like功能。Cygwin是一种GNU和开源...
《haproxy-1.8.22:高效能的负载均衡器详解》 haproxy,全称为“High Availability Proxy”,是一款轻量级、高性能的网络负载均衡器和反向代理服务器。在这个版本——haproxy-1.8.22中,它继续为用户提供稳定、可靠...
新手练习 haproxy-1.5.18-1.el6.x86_64.rpm
rpm -ivh 安装即可,软件目录:/usr/local/haproxy-1.8.23 配置文件: /etc/haproxy/haproxy.cfg 可通过 systemctl 来进行 start 、stop 、restart 可通过 systemctl enable 、disable 来开启和禁止开机自动 ...
《深入理解haproxy-1.7.10:打造高效稳定的负载均衡系统》 haproxy是一款在IT行业中广泛使用的开源负载均衡器,它的主要功能是为网络服务提供高可用性和性能优化。haproxy-1.7.10是这个项目的一个重要版本,它在...
haproxy-1.8.18.tar.gz是haproxy的1.8.18版本源码包,它包含了haproxy在该版本中的所有源代码和相关文件。 haproxy的设计目标是提供高可用性、性能和安全性。它支持多种负载均衡策略,包括轮询、最少连接、来源IP...
1. 安装:下载haproxy-1.7.8的Windows版本,解压后运行haproxy.exe启动服务。 2. 配置:修改haproxy的配置文件(通常为`haproxy.cfg`),配置监听端口、后端服务器、负载均衡算法等。 3. 启动与停止:使用命令行工具...
根据百度的上文档将目前最新版的Haproxy2.0.2打包成Windows下可执行的Haproxy.exe 最新版支持动态的ssl证书,经过测试以该Windows 下的版本已经可以支持。如果你觉得好用,劳烦给个好评。谢谢
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
在haproxy-1.4.18的安装和配置过程中,通常涉及以下步骤: 1. **下载与解压**:首先从官方网站或镜像站点下载haproxy-1.4.18的tar.gz压缩包,然后使用`tar -zxvf haproxy-1.4.18.tar.gz`命令进行解压。 2. **编译...
解压haproxy-2.8.3.tar.gz后,你会得到源代码和其他相关文件,通过编译和安装步骤,可以在Linux环境下部署haproxy。编译过程一般包括`./configure`、`make`和`make install`三个步骤。安装完成后,可以通过`haproxy ...
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
赠送jar包:netty-codec-haproxy-4.1.74.Final.jar; 赠送原API文档:netty-codec-haproxy-4.1.74.Final-javadoc.jar; 赠送源代码:netty-codec-haproxy-4.1.74.Final-sources.jar; 赠送Maven依赖信息文件:netty-...
haproxy-1.5是haproxy的一个稳定版本,提供了许多关键特性和优化。 在haproxy-1.5中,有几个重要的知识点值得我们深入探讨: 1. **负载均衡算法**:haproxy支持多种负载均衡策略,如轮询(round-robin)、最少连接...
使用HAProxy-WI安装和更新HAProxy,Nginx和Keepalived 使用HAProxy-WI安装和更新Grafana,Prometheus服务器 使用HAProxy-WI安装和更新HAProxy和Nginx导出器 使用HAProxy-WI轻松配置HAProxy,Nginx和Keepali
要安装和使用Haproxy 1.8.10,首先需要解压haproxy-1.8.10.tar.gz,然后根据系统的环境编译源代码,通常包括以下步骤: 1. `tar -zxvf haproxy-1.8.10.tar.gz` 解压文件。 2. `cd haproxy-1.8.10` 进入解压后的目录...
在部署haproxy-2.1.8时,需要先解压haproxy-2.1.8.tar.gz,然后根据系统类型和需求配置Makefile,编译并安装。安装完成后,需要编写配置文件来定义前端和后端服务器,设置负载均衡策略,并启动haproxy服务。在实际...
安装haproxy-1.7.5通常涉及以下步骤: 1. 解压文件:`tar -zxvf haproxy-1.7.5.tar.gz` 2. 配置编译:`./configure --prefix=/usr/local/haproxy` 3. 编译并安装:`make && make install` 4. 配置haproxy:编辑`/...