gpt4 book ai didi

apache2 - Centos httpd 2.4.3 服务不支持chkconfig

转载 作者:行者123 更新时间:2023-12-04 19:35:01 26 4
gpt4 key购买 nike

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

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

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

任何帮助表示赞赏。

最佳答案

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

   # chkconfig: - 85 15

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

开始服务:-
   /sbin/chkconfig httpd on

关于apache2 - Centos httpd 2.4.3 服务不支持chkconfig,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14839264/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com