使用squid命令查看squid运行状态和清除cache

2008-03-03 xiao H Posted in 服务器应用

一. 查看squid狀況:
1.
squidclient -t 1 -h 127.0.0.1 -p 80 mgr:info

2.
squidclient -T 1 -p 80 -h 127.0.01 mgr:5min | grep -e client_http.req -e client_http.all_median_svc_time -e client_http.miss_median_svc_time -e client_http.hit_median_svc_time

二. 如何清cache:
1.
telnet 127.0.0.1 80
PURGE /linuxbyte.html?xx=xx HTTP/1.1
Host: www.linuxbyte.org

2.
purge -P 1 -p localhost:80 -e “^http://www.linuxbyte.org/linuxbyte/”





标签:, ,

还没有评论呢。

我来说两句

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">