./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
重新编译,问题解决。