./configure: error: 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.
解决方法
我服务器本地确实安装了openssl,但是是通过yum安装的。通过上述的错误提示可以用命令--with-openssl=openssl的路径
来解决,注意这里的路径不是openssl的安装路径,而是源码路径。如果是通过yum安装的话,可能没有它的源码包,可以到官网下载一个然后解压。
下载地址 根据自己的需要选择对应的版本包