服务器squid 2.5 stable快速安装指南

http://tech.ddvip.com   2007年03月12日    社区交流

本文详细介绍服务器squid 2.5 stable快速安装指南

  目标:在网关上为内网提供普通代理以及透明代理服务,以ip地址为访问控制条件,不需要其他访问控制。

  #安装

  #如果是FreeBSD,建议安装如下ports:

  cd /usr/ports/devel/autoconf

  make clean

  make install clean

  cd /usr/ports/devel/automake

  make clean

  make install clean

  #首先,配置好你的网络,保证安装squid的主机能正常上网;

  ping www.163.com

  #用域名是为了测试DNS解析;

  #以下以root身份执行。

  #获得最新stable源码

  http://www.squid-cache.org

  mkdir -p /usr/local/src/distfiles

  cd /usr/local/src/distfiles

  #FreeBSD

  fetch http://www.squid-cache.org/Versions/v2/2.5/squid-2.5.STABLE1.tar.gz

  #Linux

  wget http://www.squid-cache.org/Versions/v2/2.5/squid-2.5.STABLE1.tar.gz

  tar xfz squid-2.5.STABLE1.tar.gz -C ..

  cd ../squid-2.5.STABLE1

  ./configure --prefix=/usr/local/squid

  make

  make install

  #权限改变是必要的;参考squid.conf

  #cache_effective_user nobody

  #cache_effective_group nobody

  #默认使用

  chown -R nobody:nobody /usr/local/squid/var

  #按照你的需要配置;

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

  # TAG: http_port

  # Usage: port

  # hostname:port

  # 1.2.3.4:port

  #Default:

  # http_port 3128

  http_port 60080

  #逃避讨厌的代理扫描,使用一个自定义的端口;

作者:bsdbase    责编:豆豆技术应用

正在加载评论...