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
转载于:https://blog.51cto.com/tersky/473639