在 Redhat 上面使用編譯的方式安裝 Apache 後,將 bin/apachectl 複製到 /etc/rc.d/init.d/ 目錄,並想用 chkconfig 將 Apache 設定成自動啟動,但出現了 "service httpd does not support chkconfig"。
解決方法是開解 /etc/rc.d/init.d/httpd (或 /etc/init.d/httpd),在第二行加入以下兩句:
# chkconfig: 2345 10 90
# description: Activates/Deactivates Apache Web Server
這樣就會將 httpd 強制支援 chkconfig。
本文介绍如何解决在Redhat系统中通过编译方式安装Apache后,无法使用chkconfig设置Apache为开机自动启动的问题。具体操作包括将bin/apachectl复制到/etc/rc.d/init.d/目录,并修改httpd文件以支持chkconfig。
328

被折叠的 条评论
为什么被折叠?



