首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 系统运维 >

服务器能用到的SHELL

2013-11-08 
服务器会用到的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直接编辑

热点排行