nginx启动报错nginx: [emerg] https protocol requires SSL support in /usr/local/nginx/conf/nginx.conf:50的解决办法

nginx在启动的时候报错

[root@jenkins conf]# /usr/local/nginx/sbin/nginx         
nginx: [emerg] https protocol requires SSL support in /usr/local/nginx/conf/nginx.conf:50

原因:

在预编译nginx的时候没有增加对SSL的支持,所以说在配置反向代理的时候启动就会报错。

解决方案:

在预编译的时候使用如下参数

[root@jenkins nginx-1.8.1]# ./configure --prefix=/usr/local/nginx --with-http_ssl_module

备注:

可以使用热部署进行安装升级即可

下面附上链接地址

https://www.cnbugs.com/post-2502.html

发表评论

后才能评论