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 
    
  • 相关阅读:
    webrtc 手机端视频旋转
    gstreamer 命令行一些demo
    git一些命令记录
    libnice的问题记录
    webrtc ice 协商一些记录
    linux 挂在windows目录
    leetcode Permutation Sequence
    gstreamer 接收rtsp存储为h264
    uva 10285
    AndroidStudio VS Eclipse快捷键
  • 原文地址:https://www.cnblogs.com/wala-wo/p/5119186.html
Copyright © 2011-2022 走看看