|
如果服务器已经安装过,通过make uninstall来卸载,并手动删除安装目录,make clean清理编译过的临时文件。
以下的编译参数中squid2目录作为百万缓存目录,为8081端口。
tar -zxvf squid-2.6.STABLE16.tar.gz
./configure --prefix=/usr/local/squid2 \
--enable-storeio=ufs,aufs \
--enable-snmp \
--with-maxfd=8192
make
make install
groupadd squid
useradd -g squid squid
cd /usr/local/
chown -R squid:squid squid/ |
|