当前位置 博文首页 > 做自己擅长的事:openresty+SSL安装

    做自己擅长的事:openresty+SSL安装

    作者:[db:作者] 时间:2021-07-15 10:01

    1openresty说明

    1.1软件列表

    1. pcre8.21
    2. zlib1.2.8
    3. ngx_cache_purge-2.3
    4. nginx_upstream_check_module-0.3.0
    5. openssl-1.0.2

    2安装

    2.1pcre8.21

    tar -xvf pcre8.21.tar.gz
    ./configure –prefix=/usr/local/pcre
    make && make install

    2.2zlib1.2.8

    tar -xvf zlib1.2.8.tar.gz
    ./configure –prefix=/usr/local/zlib

    2.3openssl-1.0.2

    tar -xvf openssl-1.0.2.tar.gz
    ./config –prefix=/usr/local/openssl

    2.4openresty

    ./configure –prefix=/home/app/ngxserver –with-http_realip_module –with-pcre –with-luajit –with-http_ssl_module –add-module=/home/app/openresty/ngx_cache_purge-2.3/ –add-module=/home/app/openresty/nginx_upstream_check_module-0.3.0/ –with-pcre=/home/app/openresty/pcre-8.21 –with-zlib=/home/app/openresty/zlib-1.2.8 –with-openssl=/home/app/openresty/openssl-1.0.2 -j2

    make && make install

    3测试

    cd /home/app/ngxserver/nginx/sbin
    ./nginx
    访问http://localhost/
    显示welcome openresty

    cs
    下一篇:没有了