当 Nginx 本身通过 yum/dnf 安装时,安装三个 nginx 动态模块

当 Nginx 本身通过 yum/dnf 安装时,安装三个 nginx 动态模块

我们对服务器的限制是只能通过 DNF 安装 Nginx。目前(截至撰写本文时)安装的是 Nginx v1.18.0。我们无法编译自己的 Nginx。

我理解,这样我们就无法安装“静态模块”,因为这需要重新安装整个 Nginx。但我想检查一下如何安装动态模块

  1. Nginx 更多标头
  2. Nginx Brotli
  3. Nginx 安全标头

博客等网站上的大多数偷懒建议都提供了编译 Nginx 本身的说明,或者它们完全是错误的。欢迎任何指点。我在这里搜索了一下,没有找到关于这些特定模块的问题。

编辑:仅列出当前在我的存储库中实际上可用的 nginx 模块:

# dnf search nginx-*
Last metadata expiration check: 0:26:34 ago on Mon 04 Jan 2021 10:56:18 PM EST.
============ Name Matched: nginx-* =========
nginx-all-modules.noarch : A meta package that installs all available Nginx modules
nginx-filesystem.noarch : The basic directory layout for the Nginx server
nginx-mimetypes.noarch : MIME type mappings for nginx
nginx-mod-http-image-filter.x86_64 : Nginx HTTP image filter module
nginx-mod-http-perl.x86_64 : Nginx HTTP perl module
nginx-mod-http-xslt-filter.x86_64 : Nginx XSLT module
nginx-mod-mail.x86_64 : Nginx mail modules
nginx-mod-stream.x86_64 : Nginx stream modules

谢谢!

相关内容