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