首页 > 代码库 > apache-2.4.x 编译安装方法

apache-2.4.x 编译安装方法

apache-2.4.x 编译安装方法作者:朱 茂海 /分类:Apache 字号:L M Sapache-2.2与新出的apache-2.4安装不同的地方在于,2.4版的已经不自带apr库,所以在安装apache-2.4之前,需要下载apr。1、下载软件cd /tmpwget http://mirrors.axint.net/apache//httpd/httpd-2.4.2.tar.gzwget http://mirrors.axint.net/apache//apr/apr-1.4.6.tar.gzwget http://mirrors.axint.net/apache//apr/apr-util-1.4.1.tar.gztar xzf httpd-2.4.2.tar.gztar xzf apr-1.4.6.tar.gztar xzf apr-util-1.4.1.tar.gz2、移动apr到srclibmv apr-1.4.6 httpd-2.4.2/srclib/aprmv apr-util-1.4.1 httpd-2.4.2/srclib/apr-util3、安装apache-2.4cd /tmp/httpd-2.4.2./configure --prefix=/usr/local/apache --enable-so --enable-deflate=shared --enable-ssl=shared --enable-expires=shared  --enable-headers=shared --enable-rewrite=shared --enable-static-support  --with-included-apr --with-mpm=preforkmake && make installcp -f build/rpm/httpd.init /etc/init.d/httpdchmod +x /etc/init.d/httpdchkconfig --add httpdchkconfig httpd oncd /etcmv httpd httpd_oldln -s /usr/local/apache/ httpdcd /usr/sbin/ln -fs /usr/local/apache/bin/httpdln -fs /usr/local/apache/bin/apachectlcd /var/logrm -rf httpd/ln -s /usr/local/apache/logs httpd转载请标明文章来源:《https://www.centos.bz/2012/05/apach-2-4-x-compile-install/》

 

apache-2.4.x 编译安装方法