免费注册 查看新帖 |

Chinaunix

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

[proxy] 请问squid命中率怎么看? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-06-18 14:10 |显示全部楼层 |倒序浏览
[root@localhost bin]# ./squidclient mgr:info
client: ERROR: Cannot connect to localhost:3128: Connection refused
我装的是squid2.6,端口是默认的3128.请问命中率怎么看?先谢谢了!

论坛徽章:
0
2 [报告]
发表于 2007-06-18 14:46 |显示全部楼层
我知道是什么问题了,我在squid里配了两个IP.
我用./squidclient -l 10.0.0.1:3128 mgr:info就不报错了.
显示的是#client: bind: Success.
但是我要在哪才能看到输出的结果?

[ 本帖最后由 orangemm 于 2007-6-18 14:50 编辑 ]

论坛徽章:
0
3 [报告]
发表于 2007-06-18 15:44 |显示全部楼层
squid.conf
http_port 10.0.0.1:3128
用./squidclient -p 3128 mgr:info
报client: ERROR: Cannot connect to localhost:3128: Connection refused
用./squidclient -l 10.0.0.1:3128 mgr:info
报client: bind: Success
我把squid.conf 改为
http_port 3128
./squidclient mgr:info
就没有问题,能直接看到结果
请问我要在http_port 后加IP的话要怎样才能看mgr:info?

论坛徽章:
0
4 [报告]
发表于 2007-06-19 09:55 |显示全部楼层
这试过了,这样也不行.
http_port 10.0.0.1:3128
./squidclient -l 10.0.0.1 mgr:info
client: ERROR: Cannot connect to localhost:3128: Connection refused
./squidclient -l 10.0.0.1:3128 mgr:info
client: bind: Success
./squidclient -l 10.0.0.1 -p 3128 mgr:info
client: ERROR: Cannot connect to localhost:3128: Connection refused
请问还有什么办法吗?

论坛徽章:
0
5 [报告]
发表于 2007-06-19 16:06 |显示全部楼层
先谢谢各位的帮忙,但问题还没有解决
acl manager proto cache_objectacl
acl localhost src 127.0.0.1/255.255.255.255
acl localhost src 10.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
http_access allow Manager localhost
我加了acl localhost src 10.0.0.1/255.255.255.255后也不行,去掉acl localhost src 127.0.0.1/255.255.255.255也不行,请问跟这行"acl to_localhost dst 127.0.0.0/8"有关吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP