您的当前位置:首页 >域名 >chkconfig httpd任务添加具体实现代码详解 正文

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

时间:2025-11-03 20:27:32 来源:网络整理编辑:域名

核心提示

复制#!/bin/bash #description:httpserver #chkconfig:2359898 case"$1

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.