1. Apache的安装
Apache的官网 : http://httpd.apache.org/
apache版本: 2.4.9
2. 下载Apache
先从官网下载安装包:
cd /home/gang
wget "http://apache.fayea.com/apache-mirror//httpd/httpd-2.4.9.tar.gz"
解压缩包:
tar -zxvf httpd-2.4.9.tar.gz
3. 安装之前
需要先安装APR and APR-Util
3.1 安装ARP 和 ARP-UTIL
Apache Portable Runtime (APR)必须安装,否则安装Apache时会报下面的错误:
configure: error: APR not found. Please read the documentation.
下载
wget "http://mirror.bit.edu.cn/apache//apr/apr-1.5.0