1. Frist you need to install Development tools #yum groupinstall "Development Tools" 2. Get the  “squid 2.7 ” source.decompress it.  #wget http://www.squid-cache.org/Versions/v2/2.7/squid-2.7.STABLE9.tar.gz #tar -xzvf  squid-2.7.STABLE9.tar.gz 3. change directory to squid -2.7
root@xyz squid-2.7.STABLE9]# check configure options by #./configure -help 4. Select your configuration like ./configure --enable-gnuregex --enable-carp --with-pthreads --enable-heap-replacement --enable-icmp --enable-delay-pools  --enable-useragent-log --enable-htcp --with-openssl --enable-linux-netfilter  --disable-internal-dns --enable-auth=digest,ntlm,basic --enable-auth-baisc=PAM,NCSA,LDAP --enable-auth-basic=none --enable-basic-auth-helpers=PAM,NCSA,LDAP --enable-external-acl-helpers=unix_group,ldap_group --with-filedescriptors=8192 --enable-removal-policies=lru,heap 5.Make it. #make Installation for installation you need to have root privileges . # su
# make Install if you get it without errors congratulate yourself. and proceed to next step . Your default installation directory is #/usr/local/squid/ 6.post-Installation After compiling and installing squid, you should create the cache_dir, give it the rights permissions for the squid user/group and then run:

#/usr/sbin/squid -z
to initialize the cache_dir and create the necessary subdirs
If everything works as expected then try to start squid normally
   
Code:
   
#/usr/sbin/squid
 

7. Debug.

If you get any errors start squid in debug mode to get the errors on screen:
   
Code:
   
#/usr/sbin/squid -N -d 5

最新文章

  1. 为网站文字前面添加图标 在线调用 Font Awesome 字体icon小图标 美化网站
  2. mysql 慢查询日志切割
  3. 简单的css 菜单
  4. POJ 1511 最短路spfa
  5. catalan数及笔试面试里那些相关的问题(转)
  6. UDP HelloWord
  7. 图论(KM算法):COGS 290. [CTSC2008] 丘比特的烦恼
  8. apt
  9. 冲刺NO.7
  10. GitHub学习笔记:本地操作
  11. jquery和ajax的关系详细介绍【转】
  12. 【原】Java学习笔记034 - 网络
  13. sjms-2 创建型模式
  14. php如何控制客户端生成缓存
  15. python批量拷贝文件
  16. jboss8+EJB3+MDB Queue
  17. September 07th 2017 Week 36th Thursday
  18. nginx 源码阅读 core
  19. 【JavaScript】面向对象的程序设计
  20. hapRroxy 安装配置详解

热门文章

  1. Android Gradle 学习笔记(六):Gradle 插件
  2. 最大加权矩形 压缩+前缀和+dp
  3. P1977 出租车拼车(DP)
  4. Python Unittest - 根据不同测试环境跳过用例详解
  5. rabbitMq创建和获取消息
  6. 解决Hadoop无法加载本地库的问题: Unable to load native-hadoop library for your platform
  7. HTTPS和SSL证书
  8. &&运算符和||运算符的优先级问题 专题
  9. Cmder 简明使用说明
  10. JavaFX--第2天-窗口基本的类