资讯

展开

完美解决nginx: [emerg] the "ssl" parameter requires ngx_http_ssl_module in /usr/local/nginx/co

作者:快盘下载 人气:

完美解决nginx: [emerg] the "ssl" parameter requires ngx_http_ssl_module in /usr/local/nginx/co


安装配置好nginx后。启动的时候发现一个问题。报错第7行,

完美解决nginx: [emerg] the "ssl" parameter requires ngx_http_ssl_module in /usr/local/nginx/co

明明没有问题的呀。百度了一下才知道。Nginx如果未开启SSL模块,配置Https时提示如下错误:nginx缺少http_ssl_module模块,需要在已安装的nginx中添加ssl模块。




Nginx开启SSL模块:

查看nginx原有的模块

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

在configure arguments:后面显示的原有的configure参数如下:如果你编译安装的时候没有指定ssl和安装目录,应该是空的。 


配置SSL模块:

进入nginx源码包目录,运行:

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

配置完成后,运行命令make命令:

make

注意:此处不能进行make install,否则就是覆盖安装,非常重要。

查询结果。


完美解决nginx: [emerg] the "ssl" parameter requires ngx_http_ssl_module in /usr/local/nginx/co



遇到的问题:

1、centos 6.5 yum失效怎么办 

2、centos 6.5本地yum源搭建

3、nginx最新版编译安装

4、编译安装的nginx使用方法和常见问题。

5、完美解决nginx: [emerg] the "ssl" parameter requires ngx_http_ssl_module in /usr/local/nginx/co


加载全部内容

相关教程
猜你喜欢
用户评论
快盘暂不提供评论功能!