- 论坛徽章:
- 0
|
求教各位, 我搭了一台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 |
|