Check if apache is started regularly. If it is not started, start the service automatically #!/bin/shcheck_services(){echo "Check services..."services="" ;if [ -z "`ps -A|
Grep httpd`" ]thenservices="$services httpd"fi}start_services(){echo "Start services..."for start_services in `echo $services`do/etc/init.d/$start_services startdoneecho} Check_servicesechoecho "Check services succeed!"echostart_servicesechoecho "Start services succeed!"echo
This script is added to the scheduled task to implement the timing detection service. */1 * * * * root /user/bin/httpcheck.sh
Add the above code to /etc/crontab. After restarting the crond service, you can check the running status of the service every minute.
System Requirements: Unlimited release, requires PC platform (x86 architecture CPU), Glibc version
First, what is haproxyHAProxy provides high availability, load balancing, and agents based on TCP a
The original use of Tomcat in Linux does not use the newly created user created by the non-ROOT perm
1, what is light-emitting diode Light-emitting diodes are everywhere in everyday appliances, it can
Retrieve the Linux superuser root password
Linux Tar command package backup vps file
Linux kernel upgrade basic tutorial
Teach you to query the time when installing Win7 system
Linux text processing commands (sort and uniq)
Resolve VSFTP local users can not authenticate login problems
Linux mkdir function mode permission setting
Common security policy setting method under Linux
Simple way to modify shared memory in Linux operating system
In the future, Linux wants to put Flash in Chrome
How to remove Windows 7 shortcut arrow without 360
Solution for unrecognized hard disk after upgrading win10 system
Win8 can not log in Skype prompt disk input and output error solution
How to use Win8's computer management function
Win7 system can not create restore points how to do
Win8.1 quick access to Win10 push method
Microsoft Warning: 64-bit Win7 system or unable to install KB3033929 patch update
Win8.1 system uses keyboard shortcuts to browse the web page
How Win8 uses the board application
Microsoft launched UpdateAdvisor check tool to help small memory phone upgrade Win10 Mobile