1.安裝apr(Apache Portable Runtime)
- 下載:http://apr.apache.org/download.cgi
- 解壓:tar -xvf apr-1.5.2.tar.gz
- cd apr-1.5.2
- ./configure –prefix=/usr/local/apr
- make
- make test
- make install
2.安裝APR-util
- 下載:http://apr.apache.org/download.cgi
- 解壓:tar -xvf apr-util-1.5.4.tar.gz
- cd apr-util-1.5.4
- ./configure –prefix=/usr/local/apr-util –with-apr=/usr/local/apr
- make
- make test
- make install
3.安裝Apace httpd
- 下載 http://httpd.apache.org/
- 解壓 tar -xvf httpd-2.4.25.tar.gz
- cd httpd-2.4.25
- /configure –prefix=/usr/local/httpd –with-apr=/usr/local/apr –with-apr-util=/usr/local/apr-util
- make
- make install
4.更改配置文件http.conf
- 可以根據需要對環境變量進行配置
- 可以專門一個用戶來運行此服務