服务器能用到的SHELL

服务器会用到的SHELL#!/bin/bash#httpd_restart.shSERVER_STATUS ps -ef |grep -v grep|grep httpd|wc

服务器会用到的SHELL

#!/bin/bash

#httpd_restart.sh

SERVER_STATUS = 'ps -ef |grep -v grep|grep httpd|wc -l'

if [$SERVER_STATUS -eq 0]

then /usr/sbin/apachectl start

fi

centos 定时任务 cron

用户任务在/var/spool/cron/*

全局任务/etc/crontab文件

可以使用crontab -e直接编辑