• nginx(1)安装


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

    安装及设置安装路径

    安装遇见的问题

    1.

    ./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.
    ./configure: error: HTTP重写模块需要PCRE库。
    
    您可以使用——with -http_rewrite_module禁用模块
    
    选项,或将PCRE库安装到系统中,或构建PCRE库
    
    通过使用——with-pcre=选项静态地从nginx源文件中获取

    解决办法:

    yum -y install pcre-devel

    2.

    ./configure: error: the HTTP gzip module requires the zlib library.
    You can either disable the module by using --without-http_gzip_module
    option, or install the zlib library into the system, or build the zlib library
    statically from the source with nginx by using --with-zlib=<path> option.
    HTTP gzip模块需要zlib库。
    
    您可以使用——without-http_gzip_module禁用该模块
    
    选项,或将zlib库安装到系统中,或构建zlib库
    
    通过使用——with-zlib=选项静态地从nginx源文件中获取。

    解决办法:

    yum -y install zlib-devel

    3.

    还有可能出现:

    错误提示:./configure: error: the HTTP cache module requires md5 functions
    from OpenSSL library. You can either disable the module by using
    --without-http-cache option, or install the OpenSSL library into the system,
    or build the OpenSSL library statically from the source with nginx by using
    --with-http_ssl_module --with-openssl=<path> options.

    解决办法:

    yum -y install openssl openssl-devel

  • 相关阅读:
    软件工程概论-用户登录界面
    2016.11.25异常处理
    2016.11.18多态
    2016.11.11继承与接口
    11.6数组
    10.28字符串加密等
    python 读写文件
    python可变的类型、不可变的类型
    python 字典练习 记录学生是否交作业的小程序
    python字典
  • 原文地址:https://www.cnblogs.com/mm163/p/10800277.html
Copyright © 2020-2023  润新知