chkconfig httpd任务添加具体实现代码详解

chkconfig httpd任务添加具体实现代码详解
任务复制#!/bin/bash   #description:http server   #chkconfig: 235 98 98   case "$1" in   start)   echo "Starting Apache daemon..."   /usr/local/apache2/bin/apachectl -k start   ;;   stop)   echo "Stopping Apache daemon..."   /usr/local/apache2/bin/apachectl -k stop   ;;   restart)   echo "Restarting Apache daemon..."   /usr/local/apache2/bin/apachectl -k restart   ;;   status)   statusproc /usr/local/apache2/bin/httpd   ;;   *)   echo "Usage: $0 {start|stop|restart|status}"   exit 1   ;;   Esac   1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.
IT科技类资讯
上一篇:U盘装双系统教程(简单易行的U盘装双系统方法)
下一篇:安卓手机U盘教程(一键实现数据传输,轻松管理手机存储)