首页 > 系统服务 > 详细

linux 下haproxy的安装

时间:2014-04-24 10:11:26      阅读:623      评论:0      收藏:0      [点我收藏+]

1.下载haproxy安装包haproxy-1.4.21.tar.gz

2.解压安装

#tar -zxvf haproxy-1.4.21.tar.gz

#cd haproxy-1.4.21

#more README      ----查看与linux内核版本一致的参数

 - linux22     for Linux 2.2

 - linux24     for Linux 2.4 and above (default)

 - linux24e    for Linux 2.4 with support for a working epoll (> 0.21)

- linux26     for Linux 2.6 and above

 - solaris     for Solaris 8 or 10 (others untested)

 - freebsd     for FreeBSD 5 to 8.0 (others untested)

 - openbsd     for OpenBSD 3.1 to 4.6 (others untested)

 - cygwin      for Cygwin

 - generic     for any other OS.

 - custom      to manually adjust every setting

#make TARGET=linux26 PREFIX=/usr/local/haproxy

#make install PREFIX=/usr/local/haproxy

3.拷贝配置文件模板

#cp examples/haproxy.cfg /usr/local/haproxy/conf/

haproxy是http或tcp负载,调度算法也有好几种。后续会陆续更新完善。


本文出自 “Linux” 博客,请务必保留此出处http://520and519.blog.51cto.com/2254416/1401060

linux 下haproxy的安装,布布扣,bubuko.com

linux 下haproxy的安装

原文:http://520and519.blog.51cto.com/2254416/1401060

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