六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 19|回复: 0

“service httpd does not support chkconfig” 问题

[复制链接]

升级  73.33%

128

主题

128

主题

128

主题

举人

Rank: 3Rank: 3

积分
420
 楼主| 发表于 2013-1-31 10:45:40 | 显示全部楼层 |阅读模式
摘自: http://holy2010.blog.51cto.com/1086044/353101

在 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。
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表