zoukankan      html  css  js  c++  java
  • linux下安装apache2.4

            linux安装Apache2步骤如下

           apr

    • 下载地址
           http://mirrors.cnnic.cn/apache//apr/apr-1.5.2.tar.gz
    • 安装过程
           tar -xzvf apr-1.5.2.tar.gz
           cd apr-1.5.2
           ./configure --prefix=/usr/local/apr
           make && make install
           make clean && make distclean
    

           apr-util

    • 下载地址
           http://mirrors.cnnic.cn/apache//apr/apr-util-1.5.4.tar.gz
    • 安装过程
           tar -xzvf apr-util-1.5.4.tar.gz
           cd apr-util-1.5.4
           ./configure --prefix=/usr/local/apr --with-apr=/usr/local/apr
           make && make install
           make clean && make distclean

           apr-iconv

    • 下载地址
           http://mirrors.cnnic.cn/apache//apr/apr-iconv-1.2.1.tar.gz
    • 安装
           tar -xzvf apr-iconv-1.2.1.tar.gz
           cd apr-iconv-1.2.1
           ./configure --prefix=/usr/local/apr --with-apr=/usr/local/apr
           make && make install
           make clean && make distclean

           pcre

    • 下载地址
          http://downloads.sourceforge.net/project/pcre/pcre2/10.20/pcre2-10.20.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fpcre%2Ffiles%2F&ts=1442312799&use_mirror=nchc
    • 安装
           unzip pcre2-10.20.zip
           cd pcre2-10.20
           ./configure
           make && make install
           make clean && make distclean

            bison

    • 下载


    • 安装
           tar -xzvf bison-2.6.5.tar
           cd bison-2.6.5
           ./configure
           make && make install
           make clean && make distclean
    

            flex

    • 下载
          http://download.chinaunix.net/down.php?id=5837&ResourceID=3101&site=1
    • 安装
          tar -xzvf flex-2.5.4a.tar.gz
          cd flex-2.5.4a
          ./configure
          make && make install
          make clean && make distclean

            httpd

    • 下载
           http://mirrors.cnnic.cn/apache//httpd/httpd-2.4.16.tar.bz2
    • 安装
          
          cd httpd-2.4.16
          ./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-pcre=/usr/local/bin/pcre-config
          make && make install
          make clean && make distclean 
    
  • 相关阅读:
    spring1冲刺感想与总结
    Scrum 项目7.0
    读《构造之法》8、9、10章有感
    Scrum4.0+5.0
    scrum3.0
    0512操作系统之进程调度
    Scrum 项目1.0
    团队之阅读感想
    sprint3终极演示
    0622—软件工程第一学期总结
  • 原文地址:https://www.cnblogs.com/wala-wo/p/5119186.html
Copyright © 2011-2022 走看看