nginx: [emerg] the "ssl" parameter requires ngx_http_ssl_module

nginx启动,异常如下:

原因:nginx未开启:http_ssl_module

解决方法:

1、到 nginx目录下:

> cd /data01/bonc_zj/javaweb/nginx-1.8.0

2、查看nginx原有模块

> /usr/local/nginx/sbin/nginx -V

3、重新执行配置

> ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module

4、重新编译安装

> make && make install

OK 了

 

posted @ 2018-03-02 14:41  彬儿qwb  阅读(415)  评论(0编辑  收藏  举报