squid快速编译安装
squid快速编译安装
去http://www.squid-cache.org/下载最新的tar包
编译:
./configure
–exec_prefix=/usr/local/squid
–bindir=/usr/sbin
–libexecdir=/usr/lib/squid
–sysconfdir=/etc/squid
–enable-poll
–enable-snmp
–enable-removal-policies=”heap,lru”
–enable-storeio=”aufs,coss,diskd,null,ufs”
–enable-ssl
–with-openssl=/usr/kerberos
–enable-delay-pools
–enable-linux-netfilter
–with-pthreads –enable-auth=”basic”
–with-winbind-auth-challenge
–enable-useragent-log
–enable-referer-log
–disable-dependency-tracking
–enable-cachemgr-hostname=localhost
–disable-ident-lookups
–enable-truncate
–enable-underscores
–datadir=/usr/share/squid
–enable-basic-auth-helpers=”NCSA”
–enable-err-language=”Simplify_Chinese”
–enable-default-err-language=”Simplify_Chinese”
make
make install
安装完毕后,修改目录权限,默认是以”nobody”
下文链接:
http://blog.sina.com.cn/s/blog_62c4ea990102wapi.html