首页 → Linux教程
背景:
阅读新闻
Apache-2.4.x 编译安装方法
[日期:2012-09-18]来源:Linux社区作者:hcchanqing[字体:]
apache-2.2与新出的apache-2.4安装不同的地方在于,2.4版的已经不自带apr库,,所以在安装apache-2.4之前,需要下载apr。
1、下载软件
cd /tmpwget wget wget tar xzf httpd-2.4.2.tar.gztar xzf apr-1.4.6.tar.gztar xzf apr-util-1.4.1.tar.gz
2、移动apr到srclib
mv apr-1.4.6 httpd-2.4.2/srclib/aprmv apr-util-1.4.1 httpd-2.4.2/srclib/apr-util
3、安装apache-2.4
cd /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
0
yum常用命令介绍
Ubuntu下计划任务cron的使用
相关资讯 Apache配置
图片资讯
本文评论 查看全部评论 (0)
评论声明
最新资讯
本周热门
Linux公社简介 – 广告服务 – 网站地图 – 帮助信息 – 联系我们本站(LinuxIDC)所刊载文章不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。Copyright © 2006-2014 Linux公社 All rights reserved 浙ICP备06018118号
所有欺骗中,自欺是最为严重的