搜索""的结果
Installing VMware ESXi 5.5 on the Gigabyte Brix ScopeThis article covers the steps required to install VMware ESXi 5.5 on the Gigabyte Brix, and a few other systems that use non-supported NICs that worked in ESXi 5.1.BackgroundThe driver for the Realtek RTL8111E gigabit NIC was included in the default ESXi 5.1 install ISO. Sadly, with the release of ESXi 5.5, the driver is no longer included, so we have to add it ourselves.The good news is that this is fairly easy, and should also allow anyone with an RTL8111 NIC or a RTL8168 NIC to install VMware ESXi 5.5 successfully. I can confirm it works on the Gigabyte Brix.Pre-requisitesYou will need PowerCLI 5.5StepsHere’s what I did, using PowerCLI:Add-EsxSoftwareDepot https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml New-EsxImageProfile -CloneProfile "ESXi-5.5.0-1331820-standard" -name "ESXi-5.5.0-1331820-GigabyteBrix" -Vendor "TwistedEthics.com" Add-EsxSoftwarePackage -ImagePr...
Squid 2.6 2.7 3.0 3.1 以及 varnish 2.1.5 性能对比测试 感谢 xyy运营团队  总结说明: 使用压力测试软件siege,http_load对这几个代理软件进行测试,测试了不同大小的文件和各种并发数。 squid的版本选择,考虑到实际使用的一些需求,并参考了其他的一些文章(比如:http://www.php-oa.com/2009/12/02/cache%e8%bd%af%e4%bb%b6%e7%89%88%e6%9c%ac%e9%80%89%e6%8b%a9.html),没有选择比较老的squid 2.5。 每次测试前清除文件缓存并重启代理软件。 这个测试仅作为数据参考,并不能完全模拟生产环境那么复杂的网络请求(请求数,各种大小的文件请求)。 一、测试环境: 硬件:Intel Xeon E5410 @ 2.33GHz * 2,16G内存,SATA 500G * 4(RAID 10) 安装squid 2.7 ./configure -prefix=/opt/squid2.7 -enable-xmalloc-statistics  --enable-async-io=320 --with-maxfd=65536 -enable-useragent-log  -enable-referer-log -enable-epoll -disable-poll -enable-large-cache-files -disable-internal-dns  -enable-linux-netfilter -enable-truncate -enable-x-accelerator-vary  -enable-follow-x-f...
http_load 对squid 进行压力测试 本次压力测试的目的:    a. 查看单个squid  的在大量的url 访问时 Cache 命中率    b. 在此过程中,查看squid 的平均响应时间    c.  查看  cpu mem io 的瓶颈http_load 的配置安装, 网上很多,这里就不多话了在一台服务器上搭建一个回源webservice (这里用apache  要记得设置cache-control),将 域名 cdnxxx.com指向该台服务器的IP在cdnxxx.com的根目录 生成大量测试的小图片(因为主要是测试cache、热点命中率,所以图片一般小于35KB),准备20个jpg 小图片 放到src文件夹中,将src  拷贝到cdnxxx.com的根目录,在根目录创建0文件夹(mkdir 0)       a. 生成代码,用python写的,先在0这个目录下生成6000个jpg图片           '''Created on 2013-7-16 @author: xie''' #!/usr/bin/pythonimport string, random, os # create uri def UriTotal():    uri_total = 6000    dir_total = 20  ...
TIME_WAIT 问题及netstat状态描述1,netstat -n | awk '/^tcp/ {++state[$NF]} END {for(key in state) print key,"\t",state[key]}'会得到类似下面的结果,具体数字会有所不同:LAST_ACK 1SYN_RECV 14ESTABLISHED 79FIN_WAIT1 28FIN_WAIT2 3CLOSING 5TIME_WAIT 1669状态:描述CLOSED:无连接是活动的或正在进行LISTEN:服务器在等待进入呼叫SYN_RECV:一个连接请求已经到达,等待确认SYN_SENT:应用已经开始,打开一个连接ESTABLISHED:正常数据传输状态FIN_WAIT1:应用说它已经完成FIN_WAIT2:另一边已同意释放ITMED_WAIT:等待所有分组死掉CLOSING:两边同时尝试关闭TIME_WAIT:另一边已初始化一个释放LAST_ACK:等待所有分组死掉也就是说,这条命令可以把当前系统的网络连接状态分类汇总。inux下高并发的Squid服务器,TCP TIME_WAIT套接字数量经常达到两、三万, 服务器很容易被拖死。通过修改Linux内核参数,可以减少服务器的IME_WAIT套接字数量。    vi /etc/sysctl.conf   增加以下几行: net.ipv4.tcp_fin_timeout = 30 net.ipv4.tcp_keepalive_time = 1200 net.ipv4.tcp_syncookies =&nb...
Squid动态URL日志不完整的问题 问题:当访问的URL为:http://cdnfox.com/xxx.php?sig=xxxxxxx时:日志为:1376378941      0 10.0.0.10 GET "http://cdnfox.com/xxx.php?"/1.1 - "image/jpeg" "curl/7.27.0" "-" TCP_MEM_HIT:NONE/- 200 21753URL后面的:sig=xxxxxxx 丢失了。解决方法:在squid.conf中添加:strip_query_terms off重新reload squid,日志正常。strip_query_terms默认为开启。是为了保护用户的隐私,而不在日志中记录“?”后面的参数。
Squid 2.7 +bind安装与基本配置 服务器: centos 6.3squid版本 squid-2.7.STABLE9bind版本 bind-9.9.2-P2.tar.gz先安装squid 所需的组件 , 关闭iptables, selinuxyum -y install gcc  perl make1.  在根目录创建maichuang目录, 并解压squid包[root@localhost /]# mkdir maichuang[root@localhost /]# cd /data[root@localhost data]# tar xzvf squid-2.7.STABLE9.tar.gz[root@localhost data]# cd squid-2.7.STABLE9 2. 编译安装squid[root@localhost squid-2.7.STABLE9]# ./configure --enable-kill-parent-hack --enable-large-cache-files --with-large-files --with-maxfd=344800 --enable-snmp --disable-ident-lookups --enable-carp --enable-async-io=160 --enable-storeio=ufs,aufs,diskd,null,coss --enable-epoll --enable-linux-netfilter --enable-stacktraces --enable-forward-log --enable-refe...
squid工作原理及3.1.4版本源代码安装配置实例指南 目录: ? 一.测试安装环境 ? 二.编译安装 ? 三.Squid工作模式及原理 n 3.1 SQUID如何工作 u 3.1.1 [传统代理] u 3.1.2[透明代理] u 3.1.3[反向代理] n 3.2 SQUID工作原理 u 3.2.1 SQUID缓存的存放方式: u 3.2.2SQUID的查询方式 u 3.2.3SQUID服务器之间的关系: u 3.2.4SQUID运作模式 ? 四.Squid 配置 n 4.1 主配置文档配置 n 4.2验证squid.conf的语法和配置 n 4.3初始化cache目录 n 4.4前台启动squid,查看是否报错 n 4.5透明代理设置 n 4.6反向代理设置 ? 五.Squid语法 ? 六.Squid优化 n 6.1 日志优化 n 6.2目录优化 n 6.3 Cache优化 n 6.4最大文件描述符数量限制优化 n 6.5 脚本优化优化 u 6.5.1 log脚本: u 6.5.2squid脚本: u 6.5.3Cache 脚本: ? 七.脚本用法 n 7.1 log脚本: n 7.2 squid脚本: n 7.3 Cache 脚本: ? 八.补充 n 8.1 打补丁 n 8.2 重运行configure n 8.3 nginx 与squid ? 九.Cachemgr.cgi监控squid运行状态 n 9.1 Cachemgr.cgi配置过程 n 9.2 生成口令文件 n 9.3 验证 ? 十.错误总结 n 10.1 权限问题 n 10.2 不能识别它自己的完...
 
0

Squid3.0的安装配置

发表者:分类:Devops2013-10-14 21:46:06 阅读[3441]
下载,编译安装:到官方站站下载squid3.0: http://www.squid-cache.org./configure --prefix=/opt/squid3 --disable-carp --with-aufs-threads=32 --with-pthreads --enable-storeio='ufs,aufs,null' --enable-disk-io='AIO,Blocking' --enable-removal-policies='heap,lru' --disable-wccp --enable-kill-parent-hack --disable-snmp --disable-poll --disable-select --enable-epoll --enable-auth=basic --with-aio --disable-ident-lookup --with-filedescriptors=65536 MakeMake install注意标红部分,使用squid3 最主要的原因,就是应为它开始支持epool了,而且,配置简化了很多。没有2.x 那么繁杂。 2  squid 关键配置说明:#缓存服务器的名字,可以任意  visible_hostname up1 #服务器端口  #设定squid为accel加速模式,vhost必须要加.否则将无法将主机头转发至后端服务器,访问时就会出现无法找到主机头的错误  http_port 80 accel vhost vport  #配置需要代理的realserver服务器  #定义不同的父节点,将节点设为no-query以及originserver说明这些节点是实际服务器  cache_peer 127.0.0.1 parent 80 0 no-query originserver...
haproxy + Squid 3.3.3 安装与基本配置 由于做测试开发用,搭建测试环境  haproxy + 2 *  squid 3.3.3 方案,  squid 2.7 比较稳定,性能高服务器环境是centos 6.3你可以直接使用命令安装haproxy 和squid  yum install haproxy yum install squid或者你可以手动编译安装, 由于只有一个haproxy 我就直接yum install haproxy  ,squid 是手动编译的1. 先安装haproxy yum install haproxyservice haproxy start   [root@dev_node0 etc]# vim /etc/haproxy/haproxy.cfg将默认的配置文件的部分内容,改成一下内容1234567891011121314151617181920#---------------------------------------------------------------------# main frontend which proxys to the backends#---------------------------------------------------------------------frontend  main *:80    acl ur...
RedFlag LInux SP3 编译 Squid-3.3.9 报错: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found先下载好Squid源码包,解压。#./configure --prefix=/usr/local/squid#make all 出现以下错误:/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found之前我已经编译了最新版Gcc4.8软件包,所以解决此问题就简单多了。出现该错误的原因是当前的GCC版本中,没有GLIBCXX_3.4.15,需要安装更高版本。删除原来的文件# rm /usr/lib/libstdc++.so.6重新建立软连接。ln -s /lus/local/gcc4.8/lib/libstdc++.so /usr/lib/libstdc++.so.6这时,我们再输入:strings /usr/lib/libstdc++.so.6 | grep GLIBCXX,结果为:[root@yupan gcc4.8]# strings /usr/lib/libstdc++.so.6 | grep GLIBCXXGLIBCXX_3.4GLIBCXX_3.4.1GLIBCXX_3.4.2GLIBCXX_3.4.3GLIBCXX_3.4.4GLIBCXX_3.4.5GLIBCXX_3.4.6GLIBCXX_3.4.7GLIBCXX_3.4.8GLIBCXX_3.4.9GLIBCXX_3.4.10GLIBCXX_3.4.11GLIBCXX_3.4.12GLIBCXX_3.4.13GLIBCXX_3.4.14GLIBCXX_3.4.15GLIBCXX_3.4.16GLIBCXX_3.4.17GLIBCXX_3.4.18GLIBCXX_3.4.19GLIBCXX_FORCE_NEWGLIBCXX_DEBUG_MESSAGE_LENGTH再次运行make all安装正常。.# make in...
    总共269页,当前第185页 | 页数:
  1. 175
  2. 176
  3. 177
  4. 178
  5. 179
  6. 180
  7. 181
  8. 182
  9. 183
  10. 184
  11. 185
  12. 186
  13. 187
  14. 188
  15. 189
  16. 190
  17. 191
  18. 192
  19. 193
  20. 194
  21. 195