Debian6(amd64)下Apache的安装

Debian6下Apache的安装
2012-04-25 10:25

cd /usr/local/soft

wget http://mirror.bjtu.edu.cn/apache//httpd/httpd-2.4.2.tar.gz

tar -zxvf httpd-2.4.2.tar.gz

wget http://labs.mop.com/apache-mirror//apr/apr-1.4.6.tar.gz

tar -zxvf apr-1.4.6.tar.gz

cd apr-1.4.6

./configure

make

make install

cd ..

wget http://labs.mop.com/apache-mirror//apr/apr-util-1.4.1.tar.gz

tar -zxvf apr-util-1.4.1.tar.gz

cd apr-util-1.4.1

./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr

make

make install

cd httpd-2.4.2

./configure --prefix=/usr/local/apache --enable-so --enable-rewrite --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util

#验证是否成功,输出 0 表示成功

echo $?

你可能感兴趣的:(apache)