当前位置:首页 >人工智能 >chkconfig httpd任务添加具体实现代码详解 正文

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

来源:益强资讯优选   作者:IT科技   时间:2025-11-05 11:13:57
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.

标签:

责任编辑:应用开发