美文网首页
nginx启动报错 nginx: [emerg] https p

nginx启动报错 nginx: [emerg] https p

作者: 周末不加班 | 来源:发表于2018-12-08 13:23 被阅读0次

运行nginx 测试时报错:

[root@dajia sbin]# ./nginx 
nginx: [emerg] https protocol requires SSL support in /usr/mysoftware/nginx/conf/nginx.conf:48

原因:

当初编译的时候没有启用SSL支持
在配置反向代理到 https的网站时,编辑配置文件报错,无法启动nginx

解决方案:

在安装编译的时候 需要配置 ssl支持

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

相关文章

网友评论

      本文标题:nginx启动报错 nginx: [emerg] https p

      本文链接:https://www.haomeiwen.com/subject/lwkqhqtx.html