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

03月 3rd, 2008 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/”

标签:, ,

本站原创作品采用知识共享署名-相同方式共享 3.0 许可协议进行许可。
转载请注明 作者:xiao H,出处:linuxbyte.org ,原始链接:使用squid命令查看squid运行状态和清除cache



You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

我来说两句