linux安装Apache2步骤如下
apr
- 下载地址
http://mirrors.cnnic.cn/apache//apr/apr-1.5.2.tar.gz
- 安装过程
tar -xzvf apr-1.5.2.tar.gz
cd apr-1.5.2
./configure --prefix=/usr/local/apr
make && make install
make clean && make distclean
apr-util
- 下载地址
http://mirrors.cnnic.cn/apache//apr/apr-util-1.5.4.tar.gz
- 安装过程
tar -xzvf apr-util-1.5.4.tar.gz
cd apr-util-1.5.4
./configure --prefix=/usr/local/apr --with-apr=/usr/local/apr
make && make install
make clean && make distclean
apr-iconv
- 下载地址
http://mirrors.cnnic.cn/apache//apr/apr-iconv-1.2.1.tar.gz
- 安装
tar -xzvf apr-iconv-1.2.1.tar.gz
cd apr-iconv-1.2.1
./configure --prefix=/usr/local/apr --with-apr=/usr/local/apr
make && make install
make clean && make distclean
pcre
- 下载地址
http://downloads.sourceforge.net/project/pcre/pcre2/10.20/pcre2-10.20.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fpcre%2Ffiles%2F&ts=1442312799&use_mirror=nchc
- 安装
unzip pcre2-10.20.zip
cd pcre2-10.20
./configure
make && make install
make clean && make distclean
bison
- 下载
- 安装
tar -xzvf bison-2.6.5.tar
cd bison-2.6.5
./configure
make && make install
make clean && make distclean
flex
- 下载
http://download.chinaunix.net/down.php?id=5837&ResourceID=3101&site=1
- 安装
tar -xzvf flex-2.5.4a.tar.gz
cd flex-2.5.4a
./configure
make && make install
make clean && make distclean
httpd
- 下载
http://mirrors.cnnic.cn/apache//httpd/httpd-2.4.16.tar.bz2
- 安装
cd httpd-2.4.16
./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-pcre=/usr/local/bin/pcre-config
make && make install
make clean && make distclean