免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: bigbigsh
打印 上一主题 下一主题

[proxy] squid3.0代理配置故障 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2009-01-07 14:28 |只看该作者
liuhanzhao    兄为什么下面几个都不能用..
#memory_replacement_policy heap LFUDA
#cache_replacement_policy heap LFUDA
#refresh_pattern . 0 20% 4320 override-expire override-lastmod reload-into-ims ignore-reload
#broken_vary_encoding allow apache
#header_access header allow all

论坛徽章:
0
12 [报告]
发表于 2009-01-07 15:51 |只看该作者
这是什么原因啊..

[root@hwt squid]# /usr/local/squid/sbin/squid -N -dl
2009/01/08 12:46:53| parseConfigFile: 'squid.conf' line 47 unrecognized: 'broken_vary_encoding allow apache'
2009/01/08 12:46:53| parseConfigFile: 'squid.conf' line 49 unrecognized: 'header_access header allow all'
2009/01/08 12:46:53| WARNING: use of 'override-expire' in 'refresh_pattern' violates HTTP
2009/01/08 12:46:53| WARNING: use of 'override-lastmod' in 'refresh_pattern' violates HTTP
2009/01/08 12:46:53| WARNING: use of 'reload-into-ims' in 'refresh_pattern' violates HTTP
2009/01/08 12:46:53| WARNING: use of 'ignore-reload' in 'refresh_pattern' violates HTTP
2009/01/08 12:46:53| Squid is already running!  Process ID 24049
[root@hwt squid]#

论坛徽章:
0
13 [报告]
发表于 2009-01-07 15:58 |只看该作者
2009/01/08 06:12:50| parseConfigFile: 'squid.conf' line 58 unrecognized: 'broken_vary_encoding allow apache'
2009/01/08 06:12:50| parseConfigFile: 'squid.conf' line 60 unrecognized: 'header_access header allow all'

这两个报错都是squid不识别的配置
broken_vary在3.0中已经默认就带了,所以根本不用写这条了
后面那个我没用过
2009/01/08 06:12:50| WARNING: use of 'override-expire' in 'refresh_pattern' violates HTTP
2009/01/08 06:12:50| WARNING: use of 'override-lastmod' in 'refresh_pattern' violates HTTP
2009/01/08 06:12:50| WARNING: use of 'reload-into-ims' in 'refresh_pattern' violates HTTP
2009/01/08 06:12:50| WARNING: use of 'ignore-reload' in 'refresh_pattern' violates HTTP
剩下这些只是警告,不是报错,就是说用这4个参数会打破http的规则,不算报错

论坛徽章:
0
14 [报告]
发表于 2009-01-08 11:00 |只看该作者
liuhanzhao兄能跟你交个朋友吗?我的QQ是499387551,那我什么样才能让它不warning呢?还有一个问题我如何关掉土豆网上的视频..我想把网页上的视频播放器关了.不让它显示出...这样就能关掉所有的在线视频了..
2009/01/08 06:12:50| WARNING: use of 'override-expire' in 'refresh_pattern' violates HTTP
2009/01/08 06:12:50| WARNING: use of 'override-lastmod' in 'refresh_pattern' violates HTTP
2009/01/08 06:12:50| WARNING: use of 'reload-into-ims' in 'refresh_pattern' violates HTTP
2009/01/08 06:12:50| WARNING: use of 'ignore-reload' in 'refresh_pattern' violates HTTP

论坛徽章:
0
15 [报告]
发表于 2009-01-08 15:18 |只看该作者
谁帮我看看我这命中是不是有问题

[root@hwt ~]# /usr/local/squid/bin/squidclient -p 3128 -h 196.196.0.8 mgr:info
HTTP/1.0 200 OK
Server: squid/3.0.STABLE1
Mime-Version: 1.0
Date: Fri, 09 Jan 2009 04:11:36 GMT
Content-Type: text/plain
Expires: Fri, 09 Jan 2009 04:11:36 GMT
Last-Modified: Fri, 09 Jan 2009 04:11:36 GMT
X-Cache: MISS from 196.196.0.8
Via: 1.0 196.196.0.8 (squid/3.0.STABLE1)
Proxy-Connection: close

Squid Object Cache: Version 3.0.STABLE1
Start Time:     Fri, 09 Jan 2009 02:47:19 GMT
Current Time:   Fri, 09 Jan 2009 04:11:36 GMT
Connection information for squid:
        Number of clients accessing cache:      37
        Number of HTTP requests received:       14124
        Number of ICP messages received:        0
        Number of ICP messages sent:    0
        Number of queued ICP replies:   0
        Number of HTCP messages received:       0
        Number of HTCP messages sent:   0
        Request failure ratio:   0.00
        Average HTTP requests per minute since start:   167.6
        Average ICP messages per minute since start:    0.0
        Select loop called: 1497646 times, 3.376 ms avg
Cache information for squid:
        Hits as % of all requests:      5min: 7.4%, 60min: 10.6%
        Hits as % of bytes sent:        5min: 6.6%, 60min: 9.1%
        Memory hits as % of hit requests:       5min: 6.6%, 60min: 7.6%
        Disk hits as % of hit requests: 5min: 14.5%, 60min: 21.3%
        Storage Swap size:      244880 KB
        Storage Swap capacity:   2.4% used, 97.6% free
        Storage Mem size:       -23480 KB
        Storage Mem capacity:   29.0% used, 71.0% free
        Mean Object Size:       15.90 KB
        Requests given to unlinkd:      95
Median Service Times (seconds)  5 min    60 min:
        HTTP Requests (All):   0.10857  0.10281
        Cache Misses:          0.12783  0.12106
        Cache Hits:            0.00000  0.00000
        Near Hits:             0.04277  0.05331
        Not-Modified Replies:  0.00000  0.00000
        DNS Lookups:           0.01609  0.01464
        ICP Queries:           0.00000  0.00000
Resource usage for squid:
        UP Time:        5056.657 seconds
        CPU Time:       12.215 seconds
        CPU Usage:      0.24%
        CPU Usage, 5 minute avg:        0.36%
        CPU Usage, 60 minute avg:       0.23%
        Process Data Segment Size via sbrk(): 15912 KB
        Maximum Resident Size: 0 KB
        Page faults with physical i/o: 1
Memory usage for squid via mallinfo():
        Total space in arena:   16184 KB
        Ordinary blocks:        16061 KB     12 blks
        Small blocks:               0 KB      0 blks
        Holding blocks:         83948 KB    603 blks
        Free Small blocks:          0 KB
        Free Ordinary blocks:     122 KB
        Total in use:          100009 KB 100%
        Total free:               122 KB 0%
        Total size:            100132 KB
Memory accounted for:
        Total accounted:        89385 KB  89%
        memPool accounted:      89385 KB  89%
        memPool unaccounted:    10746 KB  11%
        memPoolAlloc calls:   3728310
        memPoolFree calls:    3537558
File descriptor usage for squid:
        Maximum number of file descriptors:   1024
        Largest file desc currently in use:    255
        Number of file desc currently in use:  201
        Files queued for open:                   0
        Available number of file descriptors:  823
        Reserved number of file descriptors:   100
        Store Disk files open:                   0
Internal Data Structures:
         15528 StoreEntries
          3767 StoreEntries with MemObjects
          3766 Hot Object Cache Items
         15402 on-disk objects
[root@hwt ~]#
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP