0

由于存在漏洞,不得不在 centos 5.9 服务器上将 apache 更新到 2.4.3。

它工作正常,但我想不出一种方法让它与 chkconfig 一起工作(如果可能的话)。

我已经搜索了解决方案并尝试按照所有网站的建议将“#chkconfig: - 85 15”添加到 apachectl 中,但它仍然说服务不支持 chkconfig。

任何帮助表示赞赏。

4

1 回答 1

2

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

   # chkconfig: - 85 15

使用这一行:# chkconfig: 234 20 80

开始服务:-

   /sbin/chkconfig httpd on
于 2013-02-14T10:15:36.190 回答