LinuxMint17.3Rosa下安裝Apache流程
環境:Linux Mint 17.3 Rosa
最近在學習android,目前學到android裡面的網絡技術,是以,需要搭一下Apache的環境進行深入學習。
One:
在網上也看了一些教程學習,然後,自己試着去弄,弄好了。是以,把學到的東西,一來分享出來,二來往後忘記的話,在這裡也能重新找到。在這裡,我把Apache以及需要的東西都安裝在目錄/usr/local/web/下。
直接在Apache官網下載下傳安裝的過程中會缺少一些依賴的東西。
如:
1.APR
2.APR-UTIL
3.PCRE
是以,在正式安裝Apache之前,先:
安裝APR
<a href="http://apr.apache.org/download.cgi">APR下載下傳位址</a>
安裝APR-UTIL
<a href="http://apr.apache.org/download.cgi">APR-UTIL下載下傳位址</a>
安裝PCRE
<a href="http://pcre.org/">PCRE下載下傳位址</a>
Two:
安裝Apache
<a href="http://httpd.apache.org/">Apache官網</a>
Three:
配置啟動:
為了解決出現問題:
AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress this message
解決方法:
找到:
ServerName www.example.com:80
改為:
ServerName localhost:80
啟動
OK
參考資料
<a href="http://blog.chinaunix.net/uid-28458801-id-4211258.html">linux下手動安裝apache詳解andyhzw-ChinaUnix部落格</a>