编译错误

2、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[255041]: nginx: [emerg] unknown “connection_upgrade” variable
作者:Jeebiz  创建时间:2024-01-15 16:49
最后编辑:Jeebiz  更新时间:2024-01-25 09:11