zoukankan      html  css  js  c++  java
  • apache安装

    安装过程中可能需要root权限

    下载源包 

     http://httpd.apache.org/   httpd-2.4.16.tar.gz

    解压源文件

    tar -zxvf httpd-2.4.16.tar.gz

    配置安装信息

    cd httpd-2.4.16

    ./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite

    其中3个参数的用途如下

    --prefix=/usr/local/apache2  配置安装路径为/usr/local/apache2

    --enable-s  使httpd服务能够动态加载模块功能

    --enable-rewrite 是httpd服务具有网页地址重写功能

    a.解决apr not found问题

    下载apr源包  http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz 

    解压apr包  tar -zxvf apr-1.4.5.tar.gz

    配置安装信息  ./configure --prefix=/usr/local/apr

    安装  

    make 

    make install

    b.解决apr-util not found问题

    下载apr-util源包   http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz

    解压apr-util包 tar -zxvf apr-util-1.3.12.tar.gz

    配置安装信息  ./configure --prefix=/usr/local/apr-util -with-apr=/usr/local/apr

    安装  

    make

    make install

    再次配置apache安装信息  在后面加上两个参数

    ./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/

    安装  

    make

    make install

    启动apache

    /usr/local/apache2/bin/apachectl start

                  

  • 相关阅读:
    ubuntu十年
    国内开源镜像站
    vi 配置文件
    如何查看Linux命令源代码
    gedit乱码问题的解决
    Linux启动项修复
    我写新年愿望
    SEGGER J-Link 弹窗 在altium designer中禁用USBJATG
    线缆测试,手机端程序说明
    养兔场 网站上的个人介绍
  • 原文地址:https://www.cnblogs.com/runnyu/p/4694281.html
Copyright © 2011-2022 走看看