帮助中心 >  技术知识库 >  云服务器 >  服务器教程 >  Nginx编译报错./configure: error: SSL modules require the OpenSSL library. 解决办法

Nginx编译报错./configure: error: SSL modules require the OpenSSL library. 解决办法

2017-01-15 21:44:39 3242

Nginx编译报错./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= option

原因是编译支持https但缺少OpenSSL库文件。
解决办法:

yum install openssl openssl-devel   -y

重新编译,问题解决。

提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题: