首页 > Web开发 > 详细

linux 安装apache

时间:2018-06-24 23:22:11      阅读:287      评论:0      收藏:0      [点我收藏+]

APR and APR-Util包 下载地址:http://apr.apache.org

PCRE 下载地址:http://www.pcre.org

Apache Server2.4 下载地址:http://httpd.apache.org

 

 

1. 安装apr-1.3.2.tar.gz

  • # tar zxvf apr-1.3.2.tar.gz
  • # cd apr-1.3.2
  • # ./configure
  • # make
  • # make install

  //apr被安装在/usr/local/apr下


2. 安装apr-util-1.3.2.tar.gz

  • # tar zxvf apr-util-1.3.2.tar.gz
  • # cd apr-util-1.3.2
  • # ./configure --with-apr=/usr/local/apr  // --with-apr=/usr/local/apr 指定APR安装路径
  • # make
  • # make install

若make install 出现 error: expat.h: No such file or directory错误,则安装expat库:yum install expat-devel

技术分享图片

 

3、安装httpd-2.4.17.tar.gz

  • # tar zxvf httpd-2.4.17.tar.gz
  • # cd httpd-2.4.17.tar.gz
  • # ./configure --prefix=/usr/common/apache   --enable-mods-shared=all
  • # make
  • # make install

 

linux 安装apache

原文:https://www.cnblogs.com/xiaoliangup/p/9222140.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!