下载apr1
2
3
4wget http://mirrors.hust.edu.cn/apache//apr/apr-1.6.3.tar.gz
tar -zxvf apr-1.6.3.tar.gz
./configure --prefix=/usr/local/apr
make && make install
安装apr-util1
2
3
4
5yum install expat-devel
wget http://archive.apache.org/dist/apr/apr-util-1.5.2.tar.gz
tar -zxvf apr-util-1.5.1.tar.gz
./configure --prefix=/usr/local/apr-util -with-apr=/usr/local/apr/
make && make install
安装pcre1
2
3
4
5
6wget http://sourceforge.net/projects/pcre/files/pcre/8.32/pcre-8.32.tar.gz/download
tar -zxvf pcre-8.32.tar.gz
cd pcre-8.32
./configure
make
make install
安装apache1
2
3
4
5
6
7wget http://apache.dataguru.cn//httpd/httpd-2.4.10.tar.gz
tar -zxvf httpd-2.4.10.tar.gz
cd httpd-2.4.10
./configure --prefix=/usr/local/apache --enable-mods-shared=all --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/
make
make install
启动1
/usr/local/apache/bin/apachectl start