在AlmaLinux 8上安装Nginx 1.20(通过AppStream)

首先

使用Application Stream (AppStream) 在 AlmaLinux 8 上安装 Nginx 1.20。
原始文章:Nginx 的各种安装方法和 EOL 汇总。

支持

如果使用这种方法,根据Red Hat Enterprise Linux Application Streams Life Cycle – Red Hat Customer Portal,2023-11可能是EOL(终止支持)的日期。在此日期之后,可能不会对报告的漏洞或问题进行修复。

日志

安装

# cat /etc/redhat-release
AlmaLinux release 8.8 (Sapphire Caracal)

# yum module list nginx
Last metadata expiration check: 0:00:03 ago on Fri Jul  7 04:22:43 2023.
AlmaLinux 8 - AppStream
Name                      Stream                       Profiles                       Summary
nginx                     1.14 [d]                     common [d]                     nginx webserver
nginx                     1.16                         common [d]                     nginx webserver
nginx                     1.18                         common [d]                     nginx webserver
nginx                     1.20                         common [d]                     nginx webserver
nginx                     1.22                         common [d]                     nginx webserver

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

# yum install -y @nginx:1.20
... 略

不同的确认方法

# which nginx
/usr/sbin/nginx

# nginx -v
nginx version: nginx/1.20.1

# yum module info nginx:1.20
Last metadata expiration check: 0:00:36 ago on Fri Jul  7 04:32:25 2023.
Name             : nginx
Stream           : 1.20 [e] [a]
Version          : 8060020220421131139
Context          : 9edba152
Architecture     : x86_64
Profiles         : common [d] [i]
Default profiles : common
Repo             : appstream
Summary          : nginx webserver
Description      : nginx 1.20 webserver module
Requires         : platform:[el8]
Artifacts        : nginx-1:1.20.1-1.module_el8.6.0+2782+a022aca3.alma.src
                 : nginx-1:1.20.1-1.module_el8.6.0+2782+a022aca3.alma.x86_64
                 : nginx-all-modules-1:1.20.1-1.module_el8.6.0+2782+a022aca3.alma.noarch
                 : nginx-debuginfo-1:1.20.1-1.module_el8.6.0+2782+a022aca3.alma.x86_64
                 : nginx-debugsource-1:1.20.1-1.module_el8.6.0+2782+a022aca3.alma.x86_64
                 : nginx-filesystem-1:1.20.1-1.module_el8.6.0+2782+a022aca3.alma.noarch
                 : nginx-mod-devel-1:1.20.1-1.module_el8.6.0+2782+a022aca3.alma.x86_64
                 : nginx-mod-http-image-filter-1:1.20.1-1.module_el8.6.0+2782+a022aca3.alma.x86_64
                 : nginx-mod-http-image-filter-debuginfo-1:1.20.1-1.module_el8.6.0+2782+a022aca3.alma.x86_64
                 : nginx-mod-http-perl-1:1.20.1-1.module_el8.6.0+2782+a022aca3.alma.x86_64
                 : nginx-mod-http-perl-debuginfo-1:1.20.1-1.module_el8.6.0+2782+a022aca3.alma.x86_64
                 : nginx-mod-http-xslt-filter-1:1.20.1-1.module_el8.6.0+2782+a022aca3.alma.x86_64
                 : nginx-mod-http-xslt-filter-debuginfo-1:1.20.1-1.module_el8.6.0+2782+a022aca3.alma.x86_64
                 : nginx-mod-mail-1:1.20.1-1.module_el8.6.0+2782+a022aca3.alma.x86_64
                 : nginx-mod-mail-debuginfo-1:1.20.1-1.module_el8.6.0+2782+a022aca3.alma.x86_64
                 : nginx-mod-stream-1:1.20.1-1.module_el8.6.0+2782+a022aca3.alma.x86_64
                 : nginx-mod-stream-debuginfo-1:1.20.1-1.module_el8.6.0+2782+a022aca3.alma.x86_64

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled, [a]ctive
bannerAds