美文网首页
Nginx错误整理

Nginx错误整理

作者: Quenice | 来源:发表于2021-03-24 10:30 被阅读0次

1. 缺少ssl模块

nginx.conf中使用了ssl相关指令时,报如下错误

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

那是因为安装nginx时未安装ngx_http_ssl_module,这个模块不是默认安装的,需要指定参数安装。此时,我们可以找到原来的安装文件,重新编译、安装即可:

# 找到原来的安装文件目录,注意,不是已安装好的目录,是源安装目录
$ cd /opt/nginx-1.16.0

# 重新编译,并加上ssl模块
$ ./configure --with-http_ssl_module

# 覆盖安装
$ make & make install

官方说明:http://nginx.org/en/docs/http/ngx_http_ssl_module.html

后面陆续更新.....

相关文章

  • Nginx错误整理

    1. 缺少ssl模块 当nginx.conf中使用了ssl相关指令时,报如下错误 那是因为安装nginx时未安装n...

  • Nginx 502错误原因和解决办法总结

    一、NGINX 502错误排查NGINX 502 Bad Gateway错误是FastCGI有问题,造成NGINX...

  • nginx笔记

    出现错误分析步骤 查看日志 nginx命令 热加载nginx nginx -s reload 关闭nginx服务 ...

  • nginx的基本命令

    start nginx:打开 nginx nginx -t :测试配置文件是否有语法错误 nginx -s reo...

  • Uncaught Error: Call to undefine

    我们先用命令追踪日志nginx错误日志tail -f /var/log/nginx/error.log 错误日志输...

  • nginx启动之后打不开前端页面

    nginx启动之后,打开前端页面一直显示403错误,打开错误日志(nginx -V中找到错误日志路径),发现是Pe...

  • 动态开启进程的core dump

    前两天,nginx进程莫名奇妙挂了,查看nginx的错误日志,看到一些错误 其中,signal 11 为段错误SI...

  • nginx -- https

    测试配置是否有语法错误:nginx -t -c /usr/local/nginx/conf/nginx.conf输...

  • 十一、错误页面配置和流量控制

    一、nginx 错误页面配置 nginx错误页面包括404 403 500 502 503 504等页面,只需要在...

  • nginx 2

    1 nginx 常用模块整理 nginx 常用模块整理1 http核心模块 ngx_http_core_modu...

网友评论

      本文标题:Nginx错误整理

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