CentOS下 Pound 安装

本文介绍了如何在CentOS系统中安装Pound,一个反向代理和负载均衡器。首先,通过yum安装openssl和openssl-devel作为前置条件。然后,配置Pound的日志保存使用syslog-ng,并设置监听HTTP的详细配置,包括监听所有IPv4地址的80端口,将请求转发到内部服务器192.168.1.1的80端口。最后,启动Pound服务并检查其运行状态。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Pound:POUND - REVERSE-PROXY AND LOAD-BALANCER

http://www.apsis.ch/pound/index_html

(当前版本2.6)


PREREQUISITION
====================
$ yum install openssl openssl-devel
====================


INSTALL POUND
====================
cd /usr/local/src
wget "http://www.apsis.ch/pound/Pound-2.5.tgz"
tar zxvf Pound-2.5.tgz
cd Pound-2.5
./configure --prefix=/usr --sysconfdir=/etc --with-ssl=/usr/lib
make
make install


vi /etc/pound.cfg

...

##use syslog-ng to save  log 

LogFacility local5 

LogLevel 3

...

ListenHTTP

  Address 0.0.0.0
  Port    80

  Service
    BackEnd
      Address 192.168.1.1
      Port    80
      Priority 1
      TimeOut 60
    End

 End

End

##save


START POUND
====================
/usr/sbin/pound
##check pound status
ps aux | grep pound


LOGROTATE
====================
vi /etc/syslog-ng/syslog-ng.conf

destination d_pound { file("/var/log/pound/access_log"); };
filter f_pound  { facility(local5); }
log { source(s_sys); filter(f_pound); destination(d_pound); };


##save


vi /etc/logrotate.d/pound

/var/log/pound/access_log {
    daily
    missingok
    rotate 7
    notifempty
    postrotate
    /etc/init.d/syslog-ng reload > /dev/null
    endscript
}

##save
====================

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值