Nginx 编译报错:SSL modules require the OpenSSL library
Posted 最小的帆也能远航
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Nginx 编译报错:SSL modules require the OpenSSL library相关的知识,希望对你有一定的参考价值。
nginx 编译报错:SSL modules require the OpenSSL library
./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.
在编译 Nginx 时遇到这样的错误,明显是缺少 openssl 环境,需要手动安装
CentOS
yum -y install openssl openssl-devel
Ubuntu
apt -y install openssl openssl-devel
以上是关于Nginx 编译报错:SSL modules require the OpenSSL library的主要内容,如果未能解决你的问题,请参考以下文章