#!/bin/shwhile sleep 30doSquidNum=`ps -ef|
Grep squid|
Grep -v grep|
Wc -l`#HttpNum=`netstat -an|
Grep 0.0.0.0:80|
Grep -v grep|
Wc -l` #80state if [ $SquidNum != 3 ] ; then /etc/rc3.d/squid start adddate=`date +%Y-%m-%d`" "`date +%H: %M:%S` echo "$adddate squid started!" >> /home/resquid.logfi# Restart squid service over 5,000 http requests HttpNum=`netstat -an|
Grep 80|
Grep -v grep|
Wc -l`if [ $HttpNum -gt 5000 ] ; then /etc/rc3.d/squid restart adddate=`date +%Y-%m-%d`" "`date +%H:%M: %S` echo "$adddate http out 5000 squid started!" >> /home/resquid.logfidone
zh-CN"],null,[0.79029876],zh-CN"]]]
This tutorial gives examples of how to provide messages/dialogs in Bash Shell scripts using tools l
IAP, the full name is In-Application Programming, Chinese is interpreted as Programming in the prog
Regarding the circuit structure, whether it is a linear power supply, a thyristor power supply or
According to the bus structure, it can be divided into a bus type and a non-bus type. As we often
Java exposure vulnerability to Linux system
How to view the operation record after user login under Linux
What does the Unix/linux kernel play in the system?
Shell batch change file system file name
Linux change file /device owner method
Vm.swappiness disables swap partition performance improvement
Talking about the partition problem of Linux system
Win10 system how to set the picture password sliding gesture login
How to solve the failure of Win7 notebook keyboard
Win10 pin code can not be used to solve
How do WinXP computer CPUs look at models and performance?
Windows 7 reasonable settings power management
How to solve the problem of slow computer boot?
A new generation of windows server is expected to be listed in 2016. Codename is Redstone