将NGINX升级到v1.22.0后,无法升级Nginx模块

发布于 2025-02-05 17:46:04 字数 2052 浏览 4 评论 0原文

在尝试升级模块之后,我将NGINX从1.16升级到1.22.0,但每次尝试都失败了。

My OS="CentOS 7"

需要升级的NGINX模块:

nginx-mod-http-image-filter.x86_64    1:1.16.1-1.el7                  @epel
nginx-mod-http-perl.x86_64            1:1.16.1-1.el7                  @epel
nginx-mod-http-xslt-filter.x86_64     1:1.16.1-1.el7                  @epel
nginx-mod-stream.x86_64               1:1.16.1-1.el7                  @epel
nginx-mod-mail.x86_64                 1:1.16.1-1.el7                  @epel

可用的模块之一及其信息:

# yum info nginx-mod-stream

Installed Packages
Name        : nginx-mod-stream
Arch        : x86_64
Epoch       : 1
Version     : 1.16.1
Release     : 1.el7
Size        : 171 k
Repo        : installed
From repo   : epel
Summary     : Nginx stream modules
URL         : http://nginx.org/
License     : BSD
Description : Nginx stream modules.

Available Packages
Name        : nginx-mod-stream
Arch        : x86_64
Epoch       : 1
Version     : 1.20.1
Release     : 9.el7
Size        : 89 k
Repo        : epel/x86_64
Summary     : Nginx stream modules
URL         : https://nginx.org
License     : BSD
Description : Nginx stream modules.

我的努力之一:

# yum update nginx-mod-stream

ackage nginx-mod-stream.x86_64 1:1.20.1-9.el7 will be an update
--> Processing Dependency: nginx(abi) = 1.20.1 for package: 1:nginx-mod-stream-1.20.1-9.el7.x86_64
--> Finished Dependency Resolution
Error: Package: 1:nginx-mod-stream-1.20.1-9.el7.x86_64 (epel)
           Requires: nginx(abi) = 1.20.1
           Available: 1:nginx-1.20.1-9.el7.x86_64 (epel)
               nginx(abi) = 1.20.1
           Installed: 1:nginx-1.22.0-1.el7.ngx.x86_64 (@nginx-stable)
               Not found
           Available: 1:nginx-1.8.0-1.el7.ngx.x86_64 (nginx-stable)
               Not found
           Available: 1:nginx-1.8.1-1.el7.ngx.x86_64 (nginx-stable)
               Not found
           Available: 1:nginx-1.9.0-1.el7.ngx.x86_64 (nginx-mainline)
...
...

这是我的问题,我该如何升级它们?

I upgraded Nginx from 1.16 to 1.22.0 after that tried to upgrade modules but every attempt failed.

My OS="CentOS 7"

Nginx Modules that need to upgrade:

nginx-mod-http-image-filter.x86_64    1:1.16.1-1.el7                  @epel
nginx-mod-http-perl.x86_64            1:1.16.1-1.el7                  @epel
nginx-mod-http-xslt-filter.x86_64     1:1.16.1-1.el7                  @epel
nginx-mod-stream.x86_64               1:1.16.1-1.el7                  @epel
nginx-mod-mail.x86_64                 1:1.16.1-1.el7                  @epel

One of the available modules and it's info:

# yum info nginx-mod-stream

Installed Packages
Name        : nginx-mod-stream
Arch        : x86_64
Epoch       : 1
Version     : 1.16.1
Release     : 1.el7
Size        : 171 k
Repo        : installed
From repo   : epel
Summary     : Nginx stream modules
URL         : http://nginx.org/
License     : BSD
Description : Nginx stream modules.

Available Packages
Name        : nginx-mod-stream
Arch        : x86_64
Epoch       : 1
Version     : 1.20.1
Release     : 9.el7
Size        : 89 k
Repo        : epel/x86_64
Summary     : Nginx stream modules
URL         : https://nginx.org
License     : BSD
Description : Nginx stream modules.

One of my efforts:

# yum update nginx-mod-stream

ackage nginx-mod-stream.x86_64 1:1.20.1-9.el7 will be an update
--> Processing Dependency: nginx(abi) = 1.20.1 for package: 1:nginx-mod-stream-1.20.1-9.el7.x86_64
--> Finished Dependency Resolution
Error: Package: 1:nginx-mod-stream-1.20.1-9.el7.x86_64 (epel)
           Requires: nginx(abi) = 1.20.1
           Available: 1:nginx-1.20.1-9.el7.x86_64 (epel)
               nginx(abi) = 1.20.1
           Installed: 1:nginx-1.22.0-1.el7.ngx.x86_64 (@nginx-stable)
               Not found
           Available: 1:nginx-1.8.0-1.el7.ngx.x86_64 (nginx-stable)
               Not found
           Available: 1:nginx-1.8.1-1.el7.ngx.x86_64 (nginx-stable)
               Not found
           Available: 1:nginx-1.9.0-1.el7.ngx.x86_64 (nginx-mainline)
...
...

So here's my question, How can I upgrade them?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

卸妝后依然美 2025-02-12 17:46:04

请注意,您的NGINX已从NGINX稳定存储库中安装。从您的输出:

安装:1:nginx-1.22.0-1.el7.ngx.x86_64(@nginx-stable)

如果您想从该仓库中安装nginx,则Epel的软件包是不必要的(他们不做任何事情,因为nginx package nginx package backage从其官方存储库中已经包括流模块)。

因此,您要做的就是yum删除nginx-mod - *

Note that your NGINX has been installed from the NGINX stable repository. From your output:

Installed: 1:nginx-1.22.0-1.el7.ngx.x86_64 (@nginx-stable)

If you want to keep NGINX installed from that repo, the EPEL's packages are unnecessary (they don't do anything, because NGINX package from its official repository already includes stream module).

So all you have to do is yum remove nginx-mod-*

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文