Linux系统安装Apache ∞ Apache, Web, 原创 2012-04-29 AcePeak 1 首先安装APR mkdir -p ~/codes/apache/apr/ cd ~/codes/apache/apr/ wget http://apache.mirror.cdnetworks.com//apr/apr-1.5.2.tar.gz tar -xf apr-1.5.2.tar.gz cd apr-1.5.2 mkdir -p ~/publishes/apr/ ./configure --prefix=`echo ~`/publishes/apr/ make make install 1 安装APR-Util mkdir -p ~/codes/apache/apr-util/ cd ~/codes/apache/apr-util/ wget http://apache.mirror.cdnetworks.com//apr/apr-util-1.5.4.tar.gz tar -xf apr-util-1.5.4.tar.gz cd apr-util-1.5.4 mkdir -p ~/publishes/apr-util/ ./configure --prefix=`echo ~`/publishes/apr-util/ --with-apr=`echo ~`/publishes/apr/ make make install 3 安装Pcre mkdir -p ~/codes/apache/pcre/ cd ~/codes/apache/pcre/ wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.37.tar.gz tar -xf pcre-8.37.tar.gz cd pcre-8.37 mkdir -p ~/publishes/pcre/ ./configure --prefix=`echo ~`/publishes/pcre/ make make install 4 安装Apache mkdir -p ~/codes/apache/httpd/ cd ~/codes/apache/httpd/ wget http://apache.tt.co.kr//httpd/httpd-2.4.12.tar.gz tar -xf httpd-2.4.12.tar.gz cd httpd-2.4.12 mkdir -p ~/publishes/httpd/ ./configure --prefix=`echo ~`/publishes/httpd/ --with-apr=`echo ~`/publishes/apr --with-apr-util=`echo ~`/publishes/apr-util --with-pcre=`echo ~`/publishes/pcre make make install 5 启动Apache ~/publishes/httpd/bin/apachectl start curl http://localhost