zoukankan      html  css  js  c++  java
  • 亲测apache

    http://www.cnblogs.com/bluewelkin/p/3805107.html
    里面是纠正了原文的一些小错误,即可正常安装
     
    1、su 命令
    2、安装apr-1.3.5.tar.gz
    # tar zxvf apr-1.3.5.tar.gz
     
    # cd apr-1.3.5
     
    # ./configure
     
    #make
     
    #make install
    3、
    安装apr-util-1.3.7.tar.gz
    # tar zxvf apr-util-1.3.7.tar.gz
     
    # cd apr-util-1.3.7
     
    # . /configure --with-apr=/usr/local/apr
    . /configure --with-apr=/usr/local/apr(这个是修正之后的)
     
     
     
    # make
     
    # make install
    4
    安装httpd-2.2.11.tar.gz
    # tar zxvf httpd-2.2.11.tar.gz
     
    # ./configure --prefix=/usr/local/apache2 --enable-dav --enable-modules=so --enable-maintainer-mode --enable-rewrite --with-apr=/usr/local/apr/bin/apr-1-config --with-apr-util=/usr/local/apr/bin/apu-1-config
     
    【bash: ./configure: 没有那个文件或目录
     
    --------------------------------------------------
     
    解决方案: chmod a+x configure 修改一下这个文件的权限即可】
     
     
    # make
     
    # make install
     
     
     
    启动Apache服务:
     
    # /usr/local/apache2/bin/apachectl start
     
     
     
    用浏览器查看http://localhost/,得到It works!
     
    说明apache已经配置成功了。

    httpd: Could not reliably determine the server's fully qualified domain name

    ---------------------------------------

    解决方案:cd /usr/local/apache/conf

    vi  httpd.conf

    将里面的#ServerName www.example.comt:80注释去掉即可。


     
     、

  • 相关阅读:
    nginx 正向代理 反向代理 负载均衡
    nginx配置文件常用基本配置指令
    92)http 和https协议入门
    tp6--nginx下pathinfo配置
    tp6省略url里的index.php
    echarts鼠标移上去显示数据
    composer 下载thinkphp6失败
    tp5写入cookie失效
    4.15 Spring Cloud理论基础
    4.14 SpringBoot理论基础
  • 原文地址:https://www.cnblogs.com/bluewelkin/p/3817355.html
Copyright © 2011-2022 走看看