跳轉到內容

Apache/安裝

來自華夏公益教科書

該程式可以從 http://www.apache.org/dyn/closer.cgi 單獨安裝。

但是,一般來說,最好使用一體化解決方案,例如 WAMPEasyPHP,因為它同時包括 PHPMySQL 的安裝。

除此之外,還有一個行動式一體化解決方案,那就是 XAMPP

備註(在 PC 上):


預設情況下,Apache 設定為在啟動時自動啟動,這在伺服器上很方便。但是,在 PC 上,最好建立一個指令碼來手動啟動和停止它。以 EasyPHP 為例

net start ews-dbserver
net start ews-httpserver
net start ews-dashboard
pause
net stop ews-dashboard
net stop ews-httpserver
net stop ews-dbserver
 apt-get install apache2
 emerge apache

在大多數配置修改之後,應手動重新啟動服務

 vim /etc/httpd/conf/httpd.conf
#or
 vim /etc/apache2/apache2.conf

 /etc/init.d/apache2 restart
華夏公益教科書