zoukankan      html  css  js  c++  java
  • LInux——安装Apache

    在安装Apache的httpd的时候经常会遇到:
    configure: error: APR not found .  Please read the documentation.
    configure: error: APR-util not found .  Please read the documentation.
    configure: error: pcre-config for libpcre not found. PCRE is required and available
    网上也有文章指导如何下载后安装这些依赖的文件,本文
    将这些依赖的文件都打包在http://download.csdn.net/detail/kkdelta/4424852.
    将下面所有文件都放在 /root/wkr目录
    apr-1.4.6.tar.gz
    apr-util-1.4.1.tar.gz
    httpd-2.4.2.tar.gz
    pcre-8.30.zip

    1,安装APR:
    tar -zxvf apr-1.4.6.tar.gz
    cd apr-1.4.6
    ./configure
    make
    make install
    2,安装APR-UTIL
    #tar -zxvf apr-util-1.4.1.tar.gz
    #cd apr-util-1.4.1
    #./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
    #make
    #make install
    3安装pcre
    #unzip -o pcre-8.30.zip
    #cd pcre-8.30
    #./configure --prefix=/usr/local/pcre
    #make
    #make install
    4安装Apache
    tar -xzvf httpd-2.4.2.tar.gz
    cd httpd-2.4.2
    ./configure --prefix=/usr/local/apache/ --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre
    #make
    #make install
    5启动Apache
    cd /usr/local/apache/bin
    ./apachectl start
    如果需要新版本:
    http://httpd.apache.org/download.cgi
    http://apr.apache.org/download.cgi
    http://sourceforge.net/projects/pcre/

  • 相关阅读:
    事件DOMContentLoaded与load的区别
    JavaScript的执行环境
    JS中函数运行的执行次序
    正则表达式30分钟入门教程
    mysql数据库备份
    杂篇
    memcached
    mysql问题解决
    php学习
    apache 安装
  • 原文地址:https://www.cnblogs.com/Simon-xm/p/4081183.html
Copyright © 2011-2022 走看看