问题描述
在执行命令
./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