cheng029 发表于 2012-6-6 09:25:50

apache-2.4.x 编译安装方法

<p>apache-2.2与新出的apache-2.4安装不同的地方在于,2.4版的已经不自带apr库,所以在安装apache-2.4之前,需要下载apr。<br>1、下载软件</p><div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number."><li class="hl-firstline">cd /tmp</li><li>wget http://mirrors.axint.net/apache//httpd/httpd-2.4.2.tar.gz</li><li>wget http://mirrors.axint.net/apache//apr/apr-1.4.6.tar.gz</li><li>wget http://mirrors.axint.net/apache//apr/apr-util-1.4.1.tar.gz</li><li>tar xzf httpd-2.4.2.tar.gz</li><li>tar xzf apr-1.4.6.tar.gz</li><li>tar xzf apr-util-1.4.1.tar.gz</li></ol></div><p>2、移动apr到srclib</p><div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number."><li class="hl-firstline">mv apr-1.4.6 httpd-2.4.2/srclib/apr</li><li>mv apr-util-1.4.1 httpd-2.4.2/srclib/apr-util</li></ol></div><p>3、安装apache-2.4</p><div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number."><li class="hl-firstline">cd /tmp/httpd-2.4.2</li><li>./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=prefork</li><li>make &amp;&amp; make install</li><li>cp -f build/rpm/httpd.init /etc/init.d/httpd</li><li>chmod +x /etc/init.d/httpd</li><li>chkconfig --add httpd</li><li>chkconfig httpd on</li><li>cd /etc</li><li>mv httpd httpd_old</li><li>ln -s /usr/local/apache/ httpd</li><li>cd /usr/sbin/</li><li>ln -fs /usr/local/apache/bin/httpd</li><li>ln -fs /usr/local/apache/bin/apachectl</li><li>cd /var/log</li><li>rm -rf httpd/</li><li>ln -s /usr/local/apache/logs httpd</li></ol></div>

cheng029 发表于 2013-3-13 13:41:43

路过,支持一下啦

yanfei 发表于 2013-5-15 19:34:51

精典之极就是精斑!!!

qq524061227 发表于 2013-5-17 08:54:25

路过,支持一下啦

kinght2008 发表于 2013-5-18 11:55:21

没看完~~~~~~ 先顶,好同志

wyyy721 发表于 2013-5-19 22:12:02

勃起不是万能的,但不能勃起却是万万都不能的!

wuliuwang 发表于 2013-5-21 06:45:56

看帖回帖是美德!:lol
页: [1]
查看完整版本: apache-2.4.x 编译安装方法