Apache Httpd的安裝和配置

1.安裝apr(Apache Portable Runtime)

  1. 下載:http://apr.apache.org/download.cgi
  2. 解壓:tar -xvf apr-1.5.2.tar.gz
  3. cd apr-1.5.2
  4. ./configure –prefix=/usr/local/apr
  5. make
  6. make test
  7. make install

2.安裝APR-util

  1. 下載:http://apr.apache.org/download.cgi
  2. 解壓:tar -xvf apr-util-1.5.4.tar.gz
  3. cd apr-util-1.5.4
  4. ./configure –prefix=/usr/local/apr-util –with-apr=/usr/local/apr
  5. make
  6. make test
  7. make install

3.安裝Apace httpd

  1. 下載 http://httpd.apache.org/
  2. 解壓 tar -xvf httpd-2.4.25.tar.gz
  3. cd httpd-2.4.25
  4. /configure –prefix=/usr/local/httpd –with-apr=/usr/local/apr –with-apr-util=/usr/local/apr-util
  5. make
  6. make install

4.更改配置文件http.conf

  1. 可以根據需要對環境變量進行配置
  2. 可以專門一個用戶來運行此服務
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章