首页 > 系统相关 >nginx安装https模块失败

nginx安装https模块失败

时间:2022-10-08 17:13:10浏览次数:55  
标签:https -- OpenSSL openssl nginx usr 模块

问题描述

在执行命令 

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

报如下错误

./configure: error: SSL modules require the OpenSSL library.
You can either do not enable the modules, or install the OpenSSL library
into the system, or build the OpenSSL library statically from the source
with nginx by using --with-openssl=<path> option.

  

 

解决办法:

运行命令 whereis openssl 查找openssl的路径

然后执行命令

./configure --prefix=/usr/local/nginx  --with-openssl=/usr/bin/openssl

然后再 make make install

最后查看nginx里面是否有https模块

 

标签:https,--,OpenSSL,openssl,nginx,usr,模块
From: https://www.cnblogs.com/james-roger/p/16769529.html

相关文章