squid-源码安装(李作强)

Squid是一个高性能的代理缓存服务器,Squid支持FTP、gopher、HTTPS和HTTP协议。和一般的代理缓存软件不同,Squid用一个单独的、非模块化的、I/O驱动的进程来处理所有的客户端请求。

  1. 下载安转包:
  2. wget http://www.squid-cache.org/Versions/v3/3.3/squid-3.3.14.tar.gz
  3. 解压安装包:也可以解压到指定的位置
  4. tar zxvf squid-3.3.14.tar.gz
  5. cd squid-3.3.14
  6. 执行安装:
  7. ./configure –prefix=/usr/local/squid-3.3.14 \
  8. –enable-cpu-profiling \
  9. –enable-icmp –enable-snmp –enable-carp \
  10. –enable-gnuregex \
  11. –enable-disk-io=AIO,Blocking –enable-storeio=aufs,diskd,ufs \
  12. –enable-removal-policies=heap,lru \
  13. –enable-ssl \
  14. –enable-ssl-crtd \
  15. –enable-linux-netfilter \
  16. –with-filedescriptors=655360 –enable-x-accelerator-vary \
  17. –disable-wccp –disable-wccpv2 \
  18. –enable-kill-parent-hack \
  19. –enable-default-err-language=Simplify_Chinese \
  20. –enable-err-languages=Simplify_Chinese \
  21. –enable-referer-log \
  22. –enable-arp-acl \
  23. –enable-ltdl-convenience \
  24. –enable-delay-pools \
  25. –enable-follow-x-forwarded-for \
  26. –enable-ltdl-install
  27. 编译:
  28. make && make install
  29. 做软连接,也就是改名:
  30. ln -s /usr/local/squid-3.3.14 /usr/local/squid

启动squid 服务
/usr/local/squid/sbin/squid -s
停止squid 服务
/usr/local/squid/sbin/squid -k shutdown

猜你喜欢

转载自blog.csdn.net/weixin_41949714/article/details/81512970