關於 PHP, Linux, Open Source 及個人生活記載的網誌。
RSS icon
  • service httpd does not support chkconfig 問題

    Posted on December 21st, 2011 Sam Tang No comments

    在 Redhat 或 Centos 下手動編譯安裝 Apache 後,將 apachectl 放到 init.d 裡面,然後用 chkconfig 自動啟動,即以下動作會得出 service httpd does not support chkconfig 錯誤:

    # cp /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpd
    chkconfig httpd on

     
    service httpd does not support chkconfig

    解決方法是開啟 /etc/rc.d/init.d/httpd,把以下兩行加入到第二行便完成了。

    # chkconfig: 35 85 15
    # description: Apache is a World Wide Web server.


    Comments are closed.