Squid cannot be started

Source: Internet
Author: User

[Reproduced from: http://hi.baidu.com/yerkle/blog/item/26c3eb177186720bc93d6d9b.html]

 

Squid suddenly stopped today. The service squid start command is used to display OK. netstat-an | grep TCP command is used to find that no corresponding port is monitored. PS-x |
Grep squid cannot find the process.

View/var/log/squid. out and find the following error.
Squid: Error: cocould not send signal 0
Process 3275: (3) No such process
Squid: Error: cocould not send signal 0
Process 3275: (3) No such process
Squid: Error: cocould not send signal 0
Process 3275: (3) No such
Process

System restart problems still exist. Because the hard disk used is very small, it is suspected that there is no space. DF seems to use 100%, perspiration, and deleted the cache to free up space and restore to normal.

Set to clear cached files at every day
VI
/Etc/squid. freshcache

#! /Bin/sh

/Usr/bin/Sarg
Sleep
5S
Sync
Service squid stop
Sleep 5S
True>
/Var/log/squid/access. Log
True>/var/log/squid/cache. Log
True>
/Var/log/squid/store. Log
Rm-RF access. log .*
Rm-RF store. log .*
Sleep
5S
Sync
Rm-RF/var/spool/squid /*
Sleep 5S
Sync
Service squid
Start

Chmod A + x/etc/squid. freshcache

VI
/Etc/crontab

59 23 *** root/etc/squid. freshcache

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.