在嘗試升級模塊之后,我將 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)
...
...
所以這是我的問題,我該如何升級它們?
uj5u.com熱心網友回復:
請注意,您的 NGINX 是從 NGINX 穩定存盤庫安裝的。從您的輸出:
安裝:1:nginx-1.22.0-1.el7.ngx.x86_64(@nginx-stable)
如果你想從那個 repo 繼續安裝 NGINX,EPEL 的包是不必要的(它們不做任何事情,因為來自其官方存盤庫的 NGINX 包已經包含流模塊)。
所以你所要做的就是yum remove nginx-mod-*
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/490074.html
