httpd 服务不支持 chkconfig,咋办
我装完 apache 并且已经能运行正常,但是开机启动时,虽然是已经启动了 apache ,但启动时菜单并不显
示启动 apache 的字样,在 # chkconfig --list httpd 时,也无有 httpd 服务的字样列出,我想把
chkconfig httpd on 加进去,但又显示 :httpd 服务不支持 chkconfig 。请问,如何才能 chkconfig
管理 apache 呢?
解决办法:
cp apachectl /etc/init.d/httpd
在第2行加入
# chkconfig: - 85 15
# description: Apache is a World Wide Web server. It is used to serve \
# HTML files and CGI.
阅读(457) | 评论(0) | 转发(0) |