zoukankan      html  css  js  c++  java
  • Linux Apache 安装(无*)

    • 下载Apache

    http://httpd.apache.org/download.cgi

    • 下载依赖

    http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz

    http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz

    http://jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip 

    • 安装依赖

    tar -xvf apr-1.4.5.tar.gz

    cd apr-1.4.5

    ./configure --prefix=/usr/local/apr

    make -j20

    make install -j20

    cd ..

    tar -xvf apr-util-1.3.12.tar.gz

    cd apr-util-1.3.12

    ./configure --prefix=/usr/local/apr-util -with-apr=/usr/local/apr/bin/apr-1-config

    make -j20

    make install -j20

    cd ..

    unzip pcre-8.10.zip

    cd pcre-8.10

    ./configure --prefix=/usr/local/pcre

    make -j20

    make install -j20

    cd ..

    • 安装Apache

    tar -zvxf httpd-2.4.37.tar.gz

    cd httpd-2.4.37

    ./configure --prefix=/usr/local/apache2 --enable-modules=all --enable-rewrite --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre

    make -j20

    make install -j20

    • 修改配置(略)

    vim /usr/local/apache2/conf/httpd.conf

    • 启动Apache

    /usr/local/apache2/bin/apachectl -k start

    • 关闭Apache

    /usr/local/apache2/bin/apachectl -k stop

    参考文献:

    https://blog.csdn.net/u013218587/article/details/70169883

    http://blog.51cto.com/xtony/836508

  • 相关阅读:
    邮件发送携带附件
    两个文件内容同行合并操作
    re模块,判断某行/某字符是否存在
    企业微信公众号告警Python脚本
    CodeForces 371D. Vessels 题解
    免安装 mysql
    kibana dev tools 操作 Elasticsearch
    win10 强制关掉被占用的端口
    值传递与引用传递
    微服务网关 soul
  • 原文地址:https://www.cnblogs.com/jhc888007/p/9851585.html
Copyright © 2011-2022 走看看