Apache HTTP Server 版本2.2
httpd
是Apache超文本傳輸協(xié)議(HTTP)服務(wù)器的主程序。被設(shè)計(jì)為一個(gè)獨(dú)立運(yùn)行的后臺(tái)進(jìn)程,它會(huì)建立一個(gè)處理請求的子進(jìn)程或線程的池。
通常,httpd
不應(yīng)該被直接調(diào)用,而應(yīng)該在類Unix系統(tǒng)中由apachectl
調(diào)用,在Windows NT/2000/XP/2003中作為服務(wù)運(yùn)行和在Windows 95/98/ME中作為控制臺(tái)程序運(yùn)行.
httpd [ -d
serverroot ] [ -f config ]
[ -C directive ] [ -c
directive ] [ -D parameter ]
[ -e level ] [ -E
file ]
[ -k start|restart|graceful|stop|graceful-stop ]
[ -R directory ] [ -h ]
[ -l ] [ -L ] [ -S ]
[ -t ] [ -v ] [ -V ]
[ -X ] [ -M ]
在中Windows系統(tǒng),還可以使用下列參數(shù):
httpd [ -k
install|config|uninstall ] [ -n name ]
[ -w ]
-d serverroot
ServerRoot
指令設(shè)置初始值為serverroot。它可以被配置文件中的ServerRoot
指令所覆蓋。其默認(rèn)值是/usr/local/apache2
。-f config
ServerRoot
的路徑。其默認(rèn)值是conf/httpd.conf
。-k start|restart|graceful|stop|graceful-stop
httpd
啟動(dòng)、重新啟動(dòng)或停止。更多信息請參見停止Apache 。-C directive
-c directive
-D parameter
<IfDefine>
段,用于在服務(wù)器啟動(dòng)和重新啟動(dòng)時(shí),有條件地跳過或處理某些命令。-e level
LogLevel
為level 。它用于在啟動(dòng)時(shí),臨時(shí)增加出錯(cuò)信息的詳細(xì)程度,以幫助排錯(cuò)。-E file
-R directory
SHARED_CORE
規(guī)則時(shí),它指定共享目標(biāo)文件的目錄為directory 。-h
-l
LoadModule
指令動(dòng)態(tài)加載的模塊。-L
-M
-S
-t
-v
httpd
的版本,然后退出。-V
httpd
的版本和編譯參數(shù),然后退出。-X
httpd
。僅啟動(dòng)一個(gè)工作進(jìn)程,并且服務(wù)器不與控制臺(tái)脫離。下列參數(shù)僅用于Windows平臺(tái):
-k install|config|uninstall
-n name
-w