若用 Ubuntu 9.10 由於 Kernel 已經用到 2.6.31
在 compile 要 squid-3.1.0.15 才不會有問題
用過 squid-3.1.0.8 , squid-3.1.0.13 都不行
0. 先安裝 compiler 相關工具 build-essential
我有用 ldap 所以也要安裝
apt-get install build-essential libssl-dev libldap2-dev
1. tar zxvf squid-3.1.0.15.tar.gz
cd squid-3.1.0.15
vi build.sh
./configure --prefix=/home/squid \
--mandir=/usr/local/man \
--enable-snmp \
--enable-htcp \
--enable-gnuregex \
--enable-dlmalloc \
--enable-referer-log \
--enable-async-io=160 \
--enable-useragent-log \
--enable-cache-digists \
--enable-cpu-profiling \
--enable-kill-parent-hack \
--enable-removal-policies \
--enable-xmalloc-statistics \
--enable-default-err-language=Traditional_Chinese \
--enable-basic-auth-helpers="LDAP" \
--enable-external-acl-helpers="ldap_group" \
--enable-storeio=diskd,ufs \
--with-filedescriptors=4096 \
--with-maxfd=16384 \
--enable-ssl
sh build.sh
make && make install
Monday, November 30, 2009
Saturday, November 28, 2009
Subscribe to:
Posts (Atom)