zoukankan      html  css  js  c++  java
  • Linux 下源码安装ngnix

    版本说明:
    NGINX 版本1.12.0
    pcre-8.40
    zlib-1.2.11
    openssl-1.1.0i
     
    安装过程
    #
    ./configure  --prefix=/usr/ngnix  --with-http_stub_status_module --with-pcre=/opt/ngnix/pcre-8.40 --with-zlib=/opt/ngnix/zlib-1.2.11  --with-stream
    make && make install
     
    注:1、增加--with-openssl=/opt/ngnix/openssl-1.1.1
           报错:(未解决)
    objs/ngx_modules.o
    -ldl -lpthread -lcrypt /opt/ngnix/pcre-8.40/.libs/libpcre.a /opt/ngnix/openssl-1.1.1/.openssl/lib/libssl.a /opt/ngnix/openssl-1.1.1/.openssl/lib/libcrypto.a -ldl /opt/ngnix/zlib-1.2.11/libz.a
    -Wl,-E
    /opt/ngnix/openssl-1.1.1/.openssl/lib/libcrypto.a(threads_pthread.o): In function `fork_once_func':
    threads_pthread.c:(.text+0x16): undefined reference to `pthread_atfork'
    collect2: error: ld returned 1 exit status
    make[1]: *** [objs/nginx] Error 1
    make[1]: Leaving directory `/opt/ngnix/nginx-1.12.0'
    make: *** [build] Error 2
     
    解决:由于openssl 版本问题,换用openssl-1.1.0i   正常。
    ./configure  --prefix=/usr/ngnix  --with-http_stub_status_module --with-pcre=/opt/ngnix/pcre-8.40 --with-zlib=/opt/ngnix/zlib-1.2.11  --with-stream --with-http_ssl_module --with-openssl=/opt/ngnix/openssl-1.1.0i
     
     
     
  • 相关阅读:
    php防止用户输入进行跨站攻击的方式
    php中相关函数
    php运算符
    php中error_reporting
    php环境的安装
    LAMP环境介绍
    js的StringBuffer类
    一个带关闭按钮的Div窗口,很漂亮
    js  计算是今天多少周
    java 递归
  • 原文地址:https://www.cnblogs.com/mrice/p/9882781.html
Copyright © 2011-2022 走看看