如何解決源碼安裝httpd自啟動(dòng)問(wèn)題
2016-03-15 16:56:16
21918
1.源碼安裝的httpd24后啟動(dòng)httpd的方法是 :apachectl start,如果想讓httpd實(shí)現(xiàn)自啟動(dòng)那么得實(shí)現(xiàn)如下步驟:
2.先復(fù)制apachectl到/etc/init.d/目錄中
cp /usr/local/httpd24/bin/apachectl /etc/init.d/httpd
3.在添加httpd到chkconfig的時(shí)候出現(xiàn)錯(cuò)誤
chkconfig --add httpd
解決方法:
vi /etc/init.d/httpd 在#!/bin/sh下面添加兩行
# chkconfig: 2345 10 90
# description: Activates/Deactivates Apache Web Server
注意前面必須有#符號(hào),保存后進(jìn)行添加
4.其他問(wèn)題:
(1)chkconfig httpd status 出現(xiàn)語(yǔ)法錯(cuò)誤提示lynx命令沒(méi)有安裝,只要進(jìn)行安裝即可
會(huì)員登錄
賬號(hào)登錄還沒(méi)有賬號(hào)?立即注冊(cè)