科学上网工具 Squid 安装部署

Squid 安装部署
服务器部署环境: Centos7.6 , Ubuntu18.04

下载

官方网址: http://www.squid-cache.org

安装

1
2
3
4
5
6
7
8
9
#Centos
./configure --prefix=/usr --includedir=/usr/include --datadir=/usr/share --bindir=/usr/sbin --libexecdir=/usr/lib/squid --localstatedir=/var --sysconfdir=/etc/squid
make
make install

#Ubuntu
./configure --prefix=/usr --localstatedir=/var --libexecdir=${prefix}/lib/squid --datadir=${prefix}/share/squid --sysconfdir=/etc/squid --with-default-user=proxy --with-logdir=/var/log/squid --with-pidfile=/var/run/squid.pid
sudo make
sudo make install

配置

配置 Examples

https://wiki.squid-cache.org/ConfigExamples