squid 安装及使用

  squid链接所申请网站给in并请求该主页,接着把该主页传给用户的同时保留一个备份当别的用户申请同样的页面时,squid把保留的备份立即传给用户,加快内部网浏览Internet的速度
    1 wget http://www.squid-cache.org/Versions/v3/3.3/squid-3.3.3.tar.gz
    2 ./configure --prefix=$PWD/squid
    3 make install
    4 vim squid.conf
       增加acl myAC src ip/掩码位数   
       http_access allow myAC(在"http_access deny All"前面)
    设置 http_port port
    5 初始化cache  ./squid -zX
    6 启动         $PWD/squid/sbin/squid -sD
 7 测试         ./bin./squidclient http://www.google.com.hk
 8 停止         ./squid -k shutdown
                或者 杀死以(squid)显示的那个 kill -TERM port
    9 chrome设置代理  "Application\chrome.exe" -proxy-server=ip:开放端口,以管理员身份运行
    10 日志定期清理
  $PWD/squid/sbin/squid -k rotate
  rm -rf $PWD/squid/var/logs/access.log.* cache.log.*

 一个不错的介绍说明 http://home.arcor.de/pangj/squid/index.html

Ubuntu 下安装squid的一些操作

apt-get update
apt-get install squid
vim /etc/squid/squid.conf
ls /var/log/squid/
/etc/init.d/squid stop
squid –z
/etc/init.d/squid start
htpasswd -c /etc/squid3/passwd proxy_username

http://www.oracle.com/technetwork/java/javase/downloads/index.html
原文地址:https://www.cnblogs.com/ai464068163/p/3021785.html