Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品与服务 | Email

第 109 章 HAProxy - fast and reliable load balancing reverse proxy

目录

109.1. Installing
109.1.1. Ubuntu
109.1.2. CentOS
109.2. haproxy.cfg
109.2.1. stats
109.2.2. listen 方式
109.2.3. frontend/backend 方式
109.2.4. option
109.2.4.1. httpclose
109.2.4.2. forwardfor
109.2.4.3. httpchk
109.2.5. balance
109.2.6. server
109.3. Example 配置实例
109.3.1. HTTP 配置实例
109.3.1.1. 插入Cookie会话保持
109.3.1.2. HTTP URL 检查
109.3.2. Squid
109.3.3. haproxy + mysql 配置实例
109.3.4. HTTPS SSL证书卸载配置实例
109.3.5. 使用TCP模式实现SSL穿透

109.1. Installing

109.1.1. Ubuntu

$ apt-cache search haproxy
haproxy - fast and reliable load balancing reverse proxy

sudo apt-get install haproxy
			

启用HAProxy

$ sudo vim /etc/default/haproxy
# Set ENABLED to 1 if you want the init script to start haproxy.
#ENABLED=0
ENABLED=1
# Add extra flags here.
#EXTRAOPTS="-de -m 16"
			

ENABLED=0 改为 ENABLED=1

109.1.2. CentOS

			
yum install haproxy
			
			
comments powered by Disqus