记录在centos6折腾squid-cache(自建CDN)

发布于 2018-10-13  657 次阅读


以4.3版本为例

安装个鸡巴,不装了,装不上,有大佬会弄的话麻烦带我一下

安装前准备

1.需要关闭SELINUX

然后在执行下面的准备脚本

yum -y install gcc gcc-c++ kernel-devel perl perl-devel
wget http://www.squid-cache.org/Versions/v4/squid-4.3.tar.gz
tar xzvf squid-4.3.tar.gz
cd squid-4.3

最后执行

prefix=/usr/local/squid --sysconfdir=/etc/squid --enable-storeio=ufs,aufs,diskd --enable-icmp --enable-kill-parent-hack --enable-err-language="Simplify_Chinese" --enable-snmp --enable-arp-acl --enable-poll --enable-delay-pools --disable-ident-lookups --with-large-files

./configure --prefix=/usr/local/squid --sysconfdir=/etc/squid --enable-storeio=ufs,aufs,diskd --enable-icmp --enable-kill-parent-hack --enable-err-language="Simplify_Chinese" --enable-snmp --enable-arp-acl --enable-poll --enable-delay-pools --disable-ident-lookups --with-large-files