Advertisement
albspirit86

squid -v

Aug 2nd, 2016
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. ### if squid running, stop it with :
  2. service squid stop
  3. ### delete all squid log in /var/log/squid
  4. ### delete cache in /cache
  5. wget http://www.squid-cache.org/Versions/v3/3.5/squid-3.5.20-20160724-r14069.tar.gz
  6. tar xzvf squid-3.5.20-20160724-r14069.tar.gz
  7. wget -O squid_forgery.patch http://www.squid-cache.org/mail-archive/squid-users/201404/att-0240/squid_forgery.patch.txt
  8. cd squid-3.5.20-20160724-r14069
  9. patch -p0 <../squid_forgery.patch
  10. ./configure --prefix=/usr \
  11. --bindir=/usr/bin \
  12. --sbindir=/usr/sbin \
  13. --libexecdir=/usr/lib/squid \
  14. --sysconfdir=/etc/squid \
  15. --localstatedir=/var \
  16. --libdir=/usr/lib \
  17. --includedir=/usr/include \
  18. --datadir=/usr/share/squid \
  19. --mandir=/usr/share/man \
  20. --with-logdir=/var/log/squid \
  21. --with-pid-file=/var/run/squid.pid \
  22. --with-openssl \
  23. --enable-ssl-crtd \
  24. --enable-icmp \
  25. --enable-wccp \
  26. --enable-wccpv2 \
  27. --disable-kqueue \
  28. --disable-esi \
  29. --disable-arch-native \
  30. --disable-ipv6 \
  31. --enable-poll \
  32. --enable-ident-lookups \
  33. --enable-storeio=aufs,diskd,ufs,rock \
  34. --enable-underscores \
  35. --enable-http-violations \
  36. --enable-removal-policies=heap,lru \
  37. --enable-delay-pools \
  38. --enable-linux-netfilter \
  39. --enable-snmp \
  40. --enable-auth \
  41. --enable-auth-basic \
  42. --enable-auth-digest \
  43. --enable-auth-negotiate \
  44. --enable-auth-ntlm \
  45. --enable-log-daemon-helpers \
  46. --enable-url-rewrite-helpers \
  47. --enable-storeid-rewrite-helpers \
  48. --enable-build-info \
  49. --enable-eui \
  50. --enable-async-io=16 \
  51. --enable-unlinkd \
  52. --enable-internal-dns \
  53. --enable-epoll \
  54. --enable-select \
  55. --enable-cache-digests \
  56. --enable-forw-via-db \
  57. --enable-htcp \
  58. --enable-kill-parent-hack \
  59. --enable-icap-client \
  60. --enable-ecap \
  61. --enable-zph-qos \
  62. --with-dl \
  63. --with-filedescriptors=65536 \
  64. --with-large-files
  65. make
  66. make install
  67. chown -R nobody /var/log/squid
  68. chown -R nobody /cache
  69.  
  70.  
  71.  
  72. wget http://www.measurement-factory.com/tmp/ecap/ecap_adapter_sample-1.0.0.tar.gz
  73. tar xzvf ecap_adapter_sample-1.0.0.tar.gz
  74. cd ecap_adapter_sample-1.0.0
  75. ### edit adapter_async.cc , find sleep(delay), replace with // sleep(delay) and save
  76. ./configure && make && make install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement