搭建一个大型网站架构的实验环境 (Squid 缓存服务器篇 )
2007/12/28 16:37
六、 squid 缓存服务器的配置
squid 缓存服务器在这个实验环境中有两台( 192.168.10.30 ,192.168.10.31 )做成 squid 集群,我们首
先安装一台,然后复制一台,再做配置,这样省事,哈!
squid01 服务器网络配置
# ee /etc/rc.conf
ifconfig_lnc0="inet 192.168.10.30 netmask 255.255.255.0"
defaultrouter="192.168.10.10"
hostname="squid01.rd.bj"
# ee /etc/hosts
192.168.10.30 squid01.rd.bj # ee /etc/resolv.conf
nameserver 192.168.10.40
网络配置好后,我们开始安装 squid ,先把的藏身处找到:
# whereis squid30
squid30: /usr/ports/www/squid30
# cd /usr/ports/www/squid30
# make config # 配置安装选项
# make showconfig # 我的配置选项
===> The following configuration options are available for squid-3.0.1:
SQUID_LDAP_AUTH=off "Install LDAP authentication helpers"
SQUID_SASL_AUTH=off "Install SASL authentication helpers"
SQUID_DELAY_POOLS=off "Enable delay pools"
SQUID_SNMP=on "Enable SNMP support"
SQUID_CARP=on "Enable CARP support"
SQUID_SSL=off "Enable SSL support for reverse proxies"
SQUID_PINGER=off "Install the icmp helper"
SQUID_DNS_HELPER=off "Use the old 'dnsserver' helper"