zoukankan      html  css  js  c++  java
  • ubuntu15 安装nginx 报错:the HTTP rewrite module requires the PCRE library.



    ./configure: error: the HTTP rewrite module requires the PCRE library. You can either disable the module by using --without-http_rewrite_module option, or install the PCRE library into the system, or build the PCRE library statically from the source with nginx by using --with-pcre=<path> option.

     

    ubuntu15 编译安装nginx报错以上错误:

    需要安装 pcre 包、openssl;执行命令

    sudo apt-get update
    sudo apt-get install libpcre3 libpcre3-dev
    sudo apt-get install openssl libssl-dev

    2、安装完OpenSSL、pcre后:重新编译nginx报错:

    Configuration summary
      + using system PCRE library
      + OpenSSL library is not used
      + using system zlib library

    解决方法(指定openssl): sudo ./configure --prefix=/data/server/nginx/nginx-1.13.9/ --with-http_ssl_module

    原来命令: sudo ./configure --prefix=/data/server/nginx/nginx-1.13.9/

  • 相关阅读:
    开发周记
    开发日记03
    开发日记01
    MVC实例应用
    MVC概述
    23种设计模式简述
    xx系统属性分析
    淘宝网质量属性
    架构漫谈阅读笔记
    浅谈软件架构师工作流程
  • 原文地址:https://www.cnblogs.com/dafei4/p/12939154.html
Copyright © 2011-2022 走看看