squid 3.0 编译安装

1 下载软件

wget http://www.squid-cache.org/Versions/v3/3.1/squid-3.1.10.tar.gz

tar xzvf  squid-3.1.10.tar.gz

yum install gcc*

yum groupinstall 'Development Libraries'

yum groupinstall 'Development Tools'

./configure --prefix=/usr/local/squid  --disable-carp  --with-aufs-threads=32  --with-pthreads --enable-storeio='ufs,aufs,null' --enable-removal-policies='heap,lru'  --enable-linux-tproxy --disable-wccp --enable-kill-parent-hack --disable-snmp --disable-poll --disable-select --enable-auth=basic --with-aio  --enable-large-cache-files --enable-default-err-language=Simplify_Chinese  --enable-epoll --enable-cache-digests --with-maxfd=65535

make

make install

vi /usr/local/squid/etc/squid.conf

chmod 777 /usr/local/squid/var

chmod 777 /usr/local/squid/var/logs

/usr/local/squid/sbin/squid -z

/usr/local/squid/sbin/squid -k parse

/usr/local/squid/sbin/squid -s

 

 

本文出自 “互联网络” 博客,转载请与作者联系!

你可能感兴趣的:(linux,职场,休闲,squid3)