您的位置:首页 > 理论基础 > 计算机网络

“service httpd does not support chkconfig” 問題

2010-07-19 21:07 351 查看

“service httpd does not support chkconfig” 問題

在 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。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: