上午接到反应不能上网,连到squid服务器检查。
一,检查拨号是否正常
#adsl-status
显示拨号断掉
在adsl-start之后仍不能的情况,重启服务器后,adsl能正常联线,但客户端还是无法上网
#ping 是通的,主机能上
二,检查squid状态
#ps -aux|grep squid
#netsat -an | grep tcp
竟然没有squid进程,可见squid没有启动
#service squid start
正常启动后,不到一分钟,又找不到squid进程
奇怪
#tail /var/log/squid/squid.out
显示错误
squid: ERROR: Could not send signal 1 to process 3358: (3) No such process
squid: ERROR: Could not send signal 1 to process 3358: (3) No such process
squid: ERROR: Could not send signal 1 to process 3358: (3) No such process
再查
#df -m
发现硬盘利用率为67%,还没有到限制呀,不管它
清除快取
#rm -rf /var/spool/squid/cache1
#rm -rf /var/spool/squid/cache2
#mkdir /var/spool/squid/cache1
#mkdir /var/spool/squid/cache2
#squid -z
#service squid start
还是一样,不到一分钟,又找不到squid进程
#cd /var/log/squid
发现squid存取日志较多,较大,于是清除
#rm -rf /var/log/squid/access.log.*
#rm -rf /var/log/squid/store.log.*
#rm -rf /var/log/squid/cache.log.*
#> /var/log/squid/access.log
#> /var/log/squid/store.log
#> /var/log/squid/cache.log
#service squid start
再观察,squid已正常,不再自动关闭
于是,才明白,噢,原来日志文件太大了,squid无法写入了。
阅读(8245) | 评论(0) | 转发(0) |