星期二, 05月 27th, 2008 Posted in 服务器应用 | No Comments »
这两天忙着网吧搬家的事,昨晚完成了网关的初步设置,用 centos 5.1下 iptables+squid 2.6 做透明代理 pdnsd 做dns cache, 所用软件除pdnsd 外都是系统自带的,eth0 192.168.0.254 内网,eth1 218.108.x.x 外网。废话少说直接上配置文件。 Read more..星期五, 03月 14th, 2008 Posted in 服务器应用 | No Comments »
这个问题只有在squid压力大时才会出现,linux默认的用户最大可开启文件数为1024,而编squid 2.6的版本的话编译时默认参数为max_filedesc 16384,这样在高负债下squid 的性能就会很受影响。所以我们可以用ulimit 命令改一下啊,增大这个数值。 Read more..星期一, 03月 3rd, 2008 Posted in 服务器应用 | No Comments »
一. 查看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 Read more..