修改你的/etc/init.d/httpd脚本
在开始处#!/bin/bash之后的行后
插入
# chkconfig: 2345 85 15
# description: Apache is a World Wide Web server. It is used to serve HTML files and CGI.
#符号不能去掉
运行ntsysv 选中 httpd,就可以了
在开始处#!/bin/bash之后的行后
插入
# chkconfig: 2345 85 15
# description: Apache is a World Wide Web server. It is used to serve HTML files and CGI.
#符号不能去掉
运行ntsysv 选中 httpd,就可以了
本文介绍如何通过修改/etc/init.d/httpd脚本来配置Apache服务。具体步骤包括在脚本开头添加特定注释行,并使用ntsysv工具启用httpd服务。
737

被折叠的 条评论
为什么被折叠?



