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
- 可以根据需要对环境变量进行配置
- 可以专门一个用户来运行此服务