共 59 篇文章 |
|
Squid 优化补遗。总的来说,squid snmp 数据是需要根据具体情况分析的,而且 squid snmp 的数据也不多,有时候往往需要配合别的监控来综合分析问题,比方网络出入流量,服务器的各类性能分析,主服务器和 squid access log。比如,如果 squid 强制缓存时间比 mod_expires 配置的过期时间长,那么可能造成 squid 发送已经过期的内容,导致浏览器... 阅290 转2 评0 公众公开 09-12-17 11:22 |
如何删除squid 日志。linux/Unix下squid日志清除。/usr/local/sbin/squid -k rotate //分割日志文件rm -f /usr/local/var/logs/*.0 //删除旧的日志。SQUID win下的日志清除。c:\squid\sbin\squid -k rotate -n squidnt //分割日志文件del c:\squid\var\logs\*.0 //删除旧的日志。 阅340 转3 评0 公众公开 09-07-29 16:52 |
监测Squid日志的五种方法。"access_log /var/log/squid/access.log"指定Squid日志文件的存放位置;#/usr/local/squid-graph/bin/squid-graph -c -n -o=/var/www/html/squid-graph/ --title="Squid server usage of proxy" </var/log/squid/access.log.#cat /var/log/squid/access.log|grep"192.168.6.99"| /u... 阅539 转6 评0 公众公开 09-07-20 13:37 |
服务器的大用户量的承载方案 Nginx Squid Apache PHP MySQL.3.) 安装eAccelerator-0.9.5[root@localhost]#cd eAccelerator-0.9.5[root@localhost]#export PHP_PREFIX=/usr/local/server/php[root@localhost]#$PHP_PREFIX/bin/phpize[root@localhost]#./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config[r... 阅1432 转17 评0 公众公开 09-07-17 10:13 |
阅62 转3 评0 公众公开 09-07-10 16:34 |
3.测试配置是否正确# /usr/local/squid2/sbin/squid -k parse出现ERROR:WARNING: Cannot write log file: /usr/local/squid3/var/logs/cache.log/usr/local/squid3/var/logs/cache.log: Permission denied messages will be sent to ''stderr''.2008/03/13 12:53:09| Creating Swap DirectoriesFATAL: Failed to make s... 阅154 转2 评0 公众公开 09-07-10 16:33 |
acl allow_referer referer_regex -i baidu\.comacl allow_referer referer_regex -i google\.comacl allow_referer referer_regex -i yahoo\.cnacl allow_referer referer_regex -i google\.cn.解释一下,has_referer匹配Referer存在,然后利用!has_referer来匹配没有Referer即直接访问的请求,这部分请求不予做防盗链处理,allow。 阅820 转18 评0 公众公开 09-07-08 14:13 |
阅461 转2 评0 公众公开 09-07-08 12:06 |
squid -zX 显示初始化过程c)squid -s 以服务方式启动squidd)squid_start脚本 使用绝对或相对路径启动squid时,squid会启动子进程运行此脚本以执行一些 作e)/etc/init.d/squid start/stop/status/probe也用于管理squid(suse专用方式)f)Squid -NCd1 检查配置和当前运行情况。 阅221 转2 评0 公众公开 09-07-08 11:59 |
2)cache_peer_domain 限制/指定用户访问的邻居cache域,类似cache_peer_access,cache_peer_domain europe-cache.org parent .ch .dk .fr 以fr/dk/ch结尾的域名访问europe缓存。 阅1499 转2 评0 公众公开 09-07-08 11:58 |