免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3292 | 回复: 7
打印 上一主题 下一主题

[proxy] Squid查看缓存命中率出错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-08-24 14:55 |只看该作者 |倒序浏览
squidclient -P 3128 mgr:info
squidclient: can't open file ((2) No such file or directory)

该如何解决?

论坛徽章:
0
2 [报告]
发表于 2009-08-25 08:45 |只看该作者
Usage: squidclient [-arsv] [-i IMS] [-h remote host] [-l local host] [-p port] [-m method] [-t count] [-I ping-interval] [-H 'strings'] [-T timeout] url
Options:
    -P file      PUT request.
    -a           Do NOT include Accept: header.
    -r           Force cache to reload URL.
    -s           Silent.  Do not print data to stdout.
    -v           Verbose. Print outgoing message to stderr.
    -i IMS       If-Modified-Since time (in Epoch seconds).
    -h host      Retrieve URL from cache on hostname.  Default is localhost.
    -l host      Specify a local IP address to bind to.  Default is none.
    -p port      Port number of cache.  Default is 3128.
    -m method    Request method, default is GET.
    -t count     Trace count cache-hops
    -g count     Ping mode, "count" iterations (0 to loop until interrupted).
    -I interval  Ping interval in seconds (default 1 second).
    -H 'string'  Extra headers to send. Use '\n' for new lines.
    -T timeout   Timeout value (seconds) for read/write operations.
    -u user      Proxy authentication username
    -w password  Proxy authentication password
    -U user      WWW authentication username
    -W password  WWW authentication password

请注意大小写
-p port      Port number of cache.  Default is 3128.
-P file      PUT request.

论坛徽章:
0
3 [报告]
发表于 2009-08-25 09:50 |只看该作者
./squidclient -h localhost -p 3128 mgr:info

论坛徽章:
0
4 [报告]
发表于 2009-08-25 19:19 |只看该作者
原帖由 一刀砍死 于 2009-8-25 09:50 发表
./squidclient -h localhost -p 3128 mgr:info

正解!

论坛徽章:
0
5 [报告]
发表于 2009-08-26 11:30 |只看该作者
原帖由 一刀砍死 于 2009-8-25 09:50 发表
./squidclient -h localhost -p 3128 mgr:info


多谢,好像直接写成squidclient mgr:info指的也是本机吧?

论坛徽章:
0
6 [报告]
发表于 2009-08-26 12:24 |只看该作者
4楼正解

论坛徽章:
0
7 [报告]
发表于 2009-08-26 13:14 |只看该作者
原帖由 diepics 于 2009-8-26 12:24 发表
4楼正解


是三楼吧

论坛徽章:
2
2015年辞旧岁徽章
日期:2015-03-03 16:54:1515-16赛季CBA联赛之上海
日期:2016-05-05 09:45:14
8 [报告]
发表于 2009-08-26 14:40 |只看该作者
都是正解呀!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP