首页 > 解决方案 > 无法在 nginx 中加载 nginx-rtmp-module

问题描述

尝试添加 nginx-rtmp-module 时出现问题。

我已经在我的服务器 Centos 7 上安装了 nginx 1.20.1,所以我通过以下步骤添加了 nginx-rtmp-module:

  • 我下载了 nginx 1.20.1.tar.gz 并将其解压到 /usr/local/src/nginx 中。
  • 在 /usr/local/src/ 中克隆 nginx-rtmp-module。
  • 在 nginx 文件夹中运行此命令 ./configure --add-dynamic-module=../nginx-rtmp-module --with-compat。
  • 运行制作
  • 将 ngx_rtmp_module.so 复制到 /usr/share/nginx/modules。
  • 在 /etc/nginx/nginx.conf 的最顶部添加 load_modules modules/ngx_rtmp_module.so

    当我运行 nginx -t 我收到错误“/usr/share/nginx/modules/ngx_rtmp_module.so”失败(/usr/share/ nginx/modules/ngx_rtmp_module.so:未定义符号:HMAC_CTX_init)。我不知道如何解决它。如果您知道这个问题,请帮助我。非常感谢。这是我的 nginx.conf。[nginx.conf][1][1]:https://i.stack.imgur.com/ECefZ.jpg
  • 标签: nginxnginx-config

    解决方案


    推荐阅读