ubuntu 编译安装 apache 2.4.3

安装环境:ubuntu 桌面版12.10

安装版本:apache-2.4.3.tar.gz

使用root用户安装

su root
在出现的提升中输入密码

1.

1.apr

下载地址:http://apr.apache.org/download.cgi
cd /usr/local/src
wget http://labs.mop.com/apache-mirror//apr/apr-1.4.6.tar.gz -O apr-1.4.6.tar.gz
tar -zvxf apr-1.4.6.tar.gz
cd apr-1.4.6
mkdir -p /opt/apr
./configure --prefix=/opt/apr
make
make install
2.apr-util
下载地址:http://apr.apache.org/download.cgi
cd /usr/local/src
wget http://www.fayea.com/apache-mirror//apr/apr-util-1.5.1.tar.gz -O apr-util-1.5.1.tar.gz
tar -zvxf apr-util-1.5.1.tar.gz
cd apr-util-1.5.1
mkdir -p /opt/apr-util
./configure --prefix=/opt/apr-util --with-apr=/opt/apr
make
make install
3.prce

下载地址:http://www.pcre.org/
cd /usr/local/src
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.32.tar.gz -O pcre-8.32.tar.gz
tar -zvxf pcre-8.32.tar.gz
cd pcre-8.32
mkdir -p /opt/pcre
./configure --prefix=/opt/pcre
make
make install


sudo apt-get install build-essential

2.安装apache

2.1 下载apache

cd /usr/local/src
wget http://apache.etoak.com//httpd/httpd-2.4.3.tar.gz -O httpd-2.4.3.tar.gz

2.2 解压apache

tar -zvxf httpd-2.4.3.tar.gz

2.3、配置编译
mkdir /usr/local/apache
cd /usr/local/src/httpd-2.4.3
./configure --prefix=/usr/local/apache  --enable-module=all --with-apr=/opt/apr --with-apr-util=/opt/apr-util  --with-pcre=/opt/pcre
make
make install
cp /usr/local/apache/bin/apachectl /etc/init.d
待定。。。。。


你可能感兴趣的:(apache,ubuntu)