免费注册 查看新帖 |

Chinaunix

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

[proxy] Squid 自动压缩access.log 等log失败 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-24 11:53 |只看该作者 |倒序浏览
求教各位, 我搭了一台Squid的server, System 为 JeOS的CentOS5.2, 但是发觉squid rotate的功能无法实现, 导致access.log store.log之类的log文件越来越大.

由于是JeOS的系统,我想是不是会因为少装了某些东西才会这样.

command squid -k rotate 后没有反映

在webmin中运行Cron中设置的job显示以下情况.
刚学linux不久, 许多不懂, 求教了, 谢谢


Webmin运行cronjob后


/etc/squid/squid.conf文件配置
cache_peer 10.23.43.42 parent 8080 3130 no-query default
hierarchy_stoplist cgi-bin ?
acl NCACHE method GET
no_cache deny NCACHE
#acl QUERY urlpath_regex cgi-bin \?
#no_cache deny QUERY
#acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
acl Safe_ports port 9016 #iYe
acl Safe_ports port 9017 #iYe
acl iYe_Ports port 9016 9017
acl UnSafe_Address_List dstdomain "/etc/squid/rules/denyaccess.list"
acl NoneWorktime time A 11:30-11:31
http_access deny UnSafe_Address_List
http_access allow all
http_access deny all
http_reply_access allow all
icp_access allow all
http_port 8080
never_direct allow all
coredump_dir /var/spool/squid
access_log /var/log/squid/access.log
logfile_rotate 8

/etc/crontab 配置
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
0 22 * * 0 root /usr/sbin/squid -k rotate

招聘 : Java研发
论坛徽章:
0
2 [报告]
发表于 2009-03-26 13:52 |只看该作者
看看squid的cache.log里有何提示。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP