【问题标题】:Centos httpd 2.4.3 service does not support chkconfigCentos httpd 2.4.3 服务不支持chkconfig
【发布时间】:2013-01-28 03:44:14
【问题描述】:

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

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

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

任何帮助表示赞赏。

【问题讨论】:

    标签: apache2 centos apache


    【解决方案1】:

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

       # chkconfig: - 85 15
    

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

    启动服务:-

       /sbin/chkconfig httpd on
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-21
      • 2018-06-08
      • 2017-09-12
      • 2012-09-15
      • 2017-12-01
      相关资源
      最近更新 更多