编译Nginx时提示未添加ngx_http_ssl_module的解决方法

问题现象描述

已经编译安装好的Nginx,在添加未被编译的模块时,提示未添加ngx_http_ssl_module。

提示信息如下:

nginx: [emerg] the "ssl" parameter requires ngx_http_ssl module in /usr/local/nginx/conf/nginx.conf:100

本例中Nginx的安装目录为/“usr/local/nginx”,源码包所在目录为“/home/nginx-1.14.2”

关键过程、根本原因分析

Nginx缺少http_ssl_module模块,编译安装的时候带上--with-http_ssl_module配置即可。

结论、解决方案及效果