2013-02-12 40 views
0

由于漏洞,必须在centos 5.9服务器上将apache更新为2.4.3。Centos httpd 2.4.3服务不支持chkconfig

它工作正常,但我不能想出一个办法,使其与chkconfig的(如果可能的话)工作。

我搜索过的解决方案,并尝试添加“#chkconfig: - 85 15”到的apachectl所有网站的建议,但它仍然表示,服务不支持chkconfig的。

任何帮助表示赞赏。

回答

2

编辑文件/etc/init.d/httpd设置运行级别的Linux来代替以下行:

# chkconfig: - 85 15 

这一行:#chkconfig的:234 20 80

开始服务: -

/sbin/chkconfig httpd on