由于個(gè)人有強(qiáng)迫傾向,下載軟件都喜歡從官網(wǎng)下載,摸索了好久終于摸清楚怎么從Apache官網(wǎng)下載windows安裝版的Apache服務(wù)器了,現(xiàn)在分享給大家。
如何從Apache官網(wǎng)下載windows版apache服務(wù)器——工具/原料apache如何從Apache官網(wǎng)下載windows版apache服務(wù)器——方法/步驟
如何從Apache官網(wǎng)下載windows版apache服務(wù)器 1、
進(jìn)入apache服務(wù)器官網(wǎng)http://httpd.apache.org/,這里我們以下載穩(wěn)定版的
httpd 2.2.29為例,點(diǎn)擊download。
如何從Apache官網(wǎng)下載windows版apache服務(wù)器 2、
由于官方網(wǎng)頁改版,以前的方式可能五法進(jìn)行下載,為了不浪費(fèi)大家的時(shí)間,特此修正2015-01-24
第一步依舊是點(diǎn)擊download
如何從Apache官網(wǎng)下載windows版apache服務(wù)器 3、
點(diǎn)擊鏈接Files for Microsoft Windows
如何從Apache官網(wǎng)下載windows版apache服務(wù)器_apache下載
如何從Apache官網(wǎng)下載windows版apache服務(wù)器 4、
The Apache HTTP Server Project itself does not provide binary releases of software, only source code. Individual committersmayprovide 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
大致意思是說apache本身不提供已編譯的安裝包,只提供源碼,如果你自己無法編譯,可以選擇下面這些官方推薦的第三方提供編譯的網(wǎng)站。
其中后兩個(gè)是有名的wamp以及xampp集成環(huán)境,如果只想下載apache可以選擇前三個(gè)網(wǎng)站,這里我們第一個(gè)ApacheHaus為例。
如何從Apache官網(wǎng)下載windows版apache服務(wù)器 5、
打開ApacheHaus之后你會(huì)發(fā)現(xiàn)這個(gè)網(wǎng)站上有各種windows版本,可以盡情選擇你要下載的版本。
如何從Apache官網(wǎng)下載windows版apache服務(wù)器 6、
點(diǎn)擊紅框中的圖標(biāo)即可開始下載,x86是32位的,x64是64位的,根據(jù)自己的操作系統(tǒng)選擇下載
如何從Apache官網(wǎng)下載windows版apache服務(wù)器_apache下載
如何從Apache官網(wǎng)下載windows版apache服務(wù)器 7、
解壓后是一個(gè)壓縮包,把他移動(dòng)到你想放置的地方。
如何從Apache官網(wǎng)下載windows版apache服務(wù)器 8、
命令行下進(jìn)入到apache下面的bin目錄,輸入
httpd -k install
把a(bǔ)pache安裝成windows后臺(tái)服務(wù)。
如何從Apache官網(wǎng)下載windows版apache服務(wù)器_apache下載
如何從Apache官網(wǎng)下載windows版apache服務(wù)器 9、
利用ApacheMonitor來啟動(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 Apache24bin 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官網(wǎng)下載windows版apache服務(wù)器 10、
更多操作請(qǐng)參考附帶的說明文檔readme_first.html。
如何從Apache官網(wǎng)下載windows版apache服務(wù)器 11、
針對(duì)大家遇到的一些問題做下簡(jiǎn)單總結(jié)
1、由于apache默認(rèn)是監(jiān)聽80端口,如果你的電腦iis是啟動(dòng)狀態(tài),并且也使用了80端口,apache將無法正常啟動(dòng),需要先停止iis,另外迅雷也可能會(huì)使用80端口,所以也要關(guān)閉迅雷。查看80端口是否被占用,命令行下輸入:
netstat -aon|findstr "80"
如果看到如圖的結(jié)果,說明80端口已被使用,需要先關(guān)閉相關(guān)軟件,或者修改apache默認(rèn)的監(jiān)聽端口
打開apache目錄下的conf/httpd.conf 搜索 "Listen 80"
修改為L(zhǎng)isten 8088
保存之后再重新啟動(dòng)apache
如何從Apache官網(wǎng)下載windows版apache服務(wù)器_apache下載
如何從Apache官網(wǎng)下載windows版apache服務(wù)器 12、

2、httpd -k install 輸入該命令后查看服務(wù)是否安裝成功
開始-->運(yùn)行-->services.msc-->確定
打開后如果在服務(wù)列表能夠看到apache字樣,說明,服務(wù)安裝成功,可以直接點(diǎn)擊左邊的啟動(dòng)按鈕來啟動(dòng)服務(wù)
如何從Apache官網(wǎng)下載windows版apache服務(wù)器_apache下載
如何從Apache官網(wǎng)下載windows版apache服務(wù)器 13、
3、服務(wù)無法正常安裝,首先確定軟件32位和64位是否和自己的系統(tǒng)匹配
其次,看電腦有沒有安裝軟件相應(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下載鏈接
如何從Apache官網(wǎng)下載windows版apache服務(wù)器——注意事項(xiàng)如果下載方法過時(shí)請(qǐng)留言通知我,以便我及時(shí)更新
愛華網(wǎng)



