学会安装APACHE
1.安装apache需要求httpd-2.4.3.tar/apr-util-1.4.1.tar/pcre-8.31.tar/apr-1.4.6.tar(都最新版本)到官网下载apache.org
2.上传包到服务器
rz -be httpd-2.4.3.tar
apr-util-1.4.1.tar
pcre-8.31.tar
apr-1.4.6.tar
解压
tar zxvf httpd-2.4.3.tar
tar zxvf apr-util-1.4.1.tar
tar zxvf pcre-8.31.tar
tar zxvf apr-1.4.6.tar
3安装
由于进入http-2.4.3安装apache需要依赖于apr apr-util pcre包,而apr-util包依赖于apr包
所以安装顺序固定下来apr apr-util pcre http
cd apr-1.4.6/
 ./configure --prefix=/usr/local/apr
make
make install
cd apr-util-1.4.1/
 ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make
make install
cd pcre-8.31/
 ./configure --prefix=/usr/local/pcre
make
make install
 cd httpd-2.4.3/
./configure --prefix=/usr/local/apache --with-apr=/usrlocal/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre
make
make install