zoukankan      html  css  js  c++  java
  • nginx 编译平滑升级

    cd  /usr/local/
    wget  https://www.openssl.org/source/old/1.1.1/openssl-1.1.1e.tar.gz
    tar xf openssl-1.1.1e.tar.gz
    wget http://tengine.taobao.org/download/tengine-2.3.2.tar.gz
    tar xf tengine-2.3.2.tar.gz
    cd tengine 
    ./configure --prefix=/usr/local/nginx  --with-http_stub_status_module --with-pcre --add-module=modules/ngx_http_upstream_check_module  --with-http_ssl_module     --with-openssl=/usr/local/openssl-1.1.1e
    make
    ##注意make 后不需要进行make install
    
    cd /usr/local/nginx/sbin
    mv nginx nginx.old
    
    cd /usr/local/tengine-2.3.2/objs
    cp nginx /usr/local/nginx/sbin
    
    kill -USR2 `cat /var/run/nginx.pid`             ##nginx pid文件具体根据nginx.conf 确定
    kill -WINCH `cat /var/run/nginx.pid.oldbin`
    kill -QUIT `cat /var/run/nginx.pid.oldbin`
    
  • 相关阅读:
    java 异常练习题1
    java 异常练习题
    java 抽象类
    java 接口练习题6
    java 接口练习题5
    java 接口练习题4
    java 接口练习题3
    java接口练习题2
    java 接口练习题1
    java 泛型
  • 原文地址:https://www.cnblogs.com/rockstics/p/14245690.html
Copyright © 2011-2022 走看看