Apache是世界使用排名第一的Web服務(wù)器軟件。它可以運(yùn)行在幾乎所有廣泛使用的計(jì)算機(jī)平臺(tái)上,由于其跨平臺(tái)和安全性被廣泛使用,是最流行的Web服務(wù)器端軟件之一。因?yàn)?Apache官網(wǎng)是全英文的,而且下載比較麻煩,所以,這篇教程教VEVB武林網(wǎng)的各位朋友如何從Apache官網(wǎng)下載安裝windows版apache服務(wù)器?當(dāng)然,本站也提供Apache官方版免費(fèi)下載,嫌麻煩的小伙伴可直接從本站下載哦!
方法/步驟:
1、進(jìn)入apache服務(wù)器官網(wǎng)http://httpd.apache.org/,這里我們以下載穩(wěn)定版的
httpd 2.2.29為例,點(diǎn)擊download。
2、由于官方網(wǎng)頁(yè)改版,以前的方式可能五法進(jìn)行下載,為了不浪費(fèi)大家的時(shí)間,特此修正2017-09-22
第一步點(diǎn)擊左邊download鏈接
3、點(diǎn)擊鏈接 a number of third party vendors
后面的步驟就和之前的一致了
4、The Apache HTTP Server Project itself does not provide binary releases of software, only source code. Individual committers may provide binary packages as a convenience, but it is not a release deliverable.
If you cannot compile the Apache HTTP Server yourself, you can obtain a binary package from numerous binary distributions available on the Internet.
Popular options for deploying Apache httpd, and, optionally, PHP and MySQL, on Microsoft Windows, include:
ApacheHaus
Apache Lounge
BitNami WAMP Stack
WampServer
XAMPP
大致意思是說(shuō)apache本身不提供已編譯的安裝包,只提供源碼,如果你自己無(wú)法編譯,可以選擇下面這些官方推薦的第三方提供編譯的網(wǎng)站。
其中后兩個(gè)是有名的wamp以及xampp集成環(huán)境,如果只想下載apache可以選擇前三個(gè)網(wǎng)站,這里我們第一個(gè)ApacheHaus為例。
5、打開(kāi)ApacheHaus之后你會(huì)發(fā)現(xiàn)這個(gè)網(wǎng)站上有各種windows版本,可以盡情選擇你要下載的版本。
6、點(diǎn)擊紅框中的圖標(biāo)即可開(kāi)始下載,x86是32位的,x64是64位的,根據(jù)自己的操作系統(tǒng)選擇下載
7、解壓后是一個(gè)壓縮包,把他移動(dòng)到你想放置的地方。
8、命令行下進(jìn)入到apache下面的bin目錄,輸入
httpd -k install
把a(bǔ)pache安裝成windows后臺(tái)服務(wù)。
9、利用ApacheMonitor來(lái)啟動(dòng)你的apache
The Apache Monitor is a desktop tray application that allows you to monitor the existence of a running Apache service and easily start, stop and restart Apache. To use it just double click on the ApacheMonitor.exe in the /Apache24/bin folder. If you want it to start automatically for you when you log into the computer, just drag a copy into the Startup folder in Window's Start Menu.
Apache監(jiān)控器是一個(gè)允許你用來(lái)監(jiān)控正在運(yùn)行的Apache服務(wù)的軟件,并且讓你啟動(dòng)、停止和重啟Apache變得更容易。只需要雙擊/Apache24/bin目錄下的
ApacheMonitor.exe就可以運(yùn)行該程序,如果你想開(kāi)機(jī)自動(dòng)啟動(dòng)該軟件,把該軟件拉倒開(kāi)始菜單里的Startup folder即可(windows10的Startup folder使用方法請(qǐng)自行百度)
10、更多操作請(qǐng)參考附帶的說(shuō)明文檔readme_first.html。
針對(duì)大家遇到的一些問(wèn)題做下簡(jiǎn)單總結(jié):
1、由于apache默認(rèn)是監(jiān)聽(tīng)80端口,如果你的電腦iis是啟動(dòng)狀態(tài),并且也使用了80端口,apache將無(wú)法正常啟動(dòng),需要先停止iis,另外迅雷也可能會(huì)使用80端口,所以也要關(guān)閉迅雷。查看80端口是否被占用,命令行下輸入:
netstat -aon|findstr "80"
如果看到如圖的結(jié)果,說(shuō)明80端口已被使用,需要先關(guān)閉相關(guān)軟件,或者修改apache默認(rèn)的監(jiān)聽(tīng)端口
打開(kāi)apache目錄下的conf/httpd.conf 搜索 "Listen 80"
修改為L(zhǎng)isten 8088
保存之后再重新啟動(dòng)apache
2、httpd -k install 輸入該命令后查看服務(wù)是否安裝成功
開(kāi)始-->運(yùn)行-->services.msc-->確定
打開(kāi)后如果在服務(wù)列表能夠看到apache字樣,說(shuō)明,服務(wù)安裝成功,可以直接點(diǎn)擊左邊的啟動(dòng)按鈕來(lái)啟動(dòng)服務(wù)
3、服務(wù)無(wú)法正常安裝,首先確定軟件32位和64位是否和自己的系統(tǒng)匹配
其次,看電腦有沒(méi)有安裝軟件相應(yīng)的運(yùn)行包,比如你下載的是VC9版本,那么你需要先安裝Microsoft Visual C++ 2008 Redistributable ,同理VC11版本你需要安裝Microsoft Visual C++ 2012 Update 4 Redistributable Package (X86 & x64)
在ApacheHaus網(wǎng)站的最底部提供了相應(yīng)的Visual Studio Redistributable Packages下載鏈接
教程結(jié)束,以上就是Apache官網(wǎng)下載安裝windows版apache服務(wù)器圖文教程的全部?jī)?nèi)容,希望對(duì)你有所幫助!
新聞熱點(diǎn)
疑難解答
圖片精選