美文网首页
NGINX 上安装SSL模块

NGINX 上安装SSL模块

作者: zlup | 来源:发表于2018-11-05 16:06 被阅读0次

    开源的NGINX,通常编译的时候不带有ssl module。需要我们自己带上ssl module的参数来编译。可以通过下面的命令查看当前NGINX是否带有ssl module:
    ./nginx -V

    image.png
    如果输出的内容里面没有TLS或SSL相关的内容,就表明没有ssl module。

    安装步骤

    下载openssl并解压

    wget https://www.openssl.org/source/openssl-1.0.1t.tar.gz
    tar zxvf openssl-1.0.1t.tar.gz

    配置NGINX模块

    cd [your nginx source folder]
    ./configure --with-http_ssl_module --with-openssl=/home/openssl-1.0.1t

    编译

    make -j2
    make install

    相关文章

      网友评论

          本文标题:NGINX 上安装SSL模块

          本文链接:https://www.haomeiwen.com/subject/ammsxqtx.html