#!/bin/bash b=`pgrep httpd` if [[ $b != "" ]];then service httpd stop else service httpd start fi
使用crontab:
0 8,18 * * * sh /root/apache.sh
mogu
要发表评论,您必须先登录。