httpd服务为什么不能填加到服务列表中呢?

来源:互联网 发布:linux查看sd卡 编辑:程序博客网 时间:2024/06/13 01:06

apache已经安装了,httpd服务也可用service httpd start启用了,可是用chkconfig --list发现在服务列表中没有httpd服务,用chkconfig --add httpd填加到列表中时提示:httpd服务不支持chkconfig,在ntsysv列表中也没有httpd服务,改怎么办呢??

自已写一个。shell 放到INIT.D中。

在sh中要有如下两行,
chkconfig: 为运行级别等设置
description:设置说明

# chkconfig: 345 85 15
# description: Resin is a Java Web server

然后把角本CP到/etc/init.d中。
chkconfig --add abc.sh

0 0
原创粉丝点击