在AlmaLinux 9上安装Nginx 1.22(通过AppStream)

首先

使用Application Stream (AppStream) 在 AlmaLinux9 上安装 Nginx 1.22。
原文:Nginx的各种安装方法和EOL总结。

支持

如果采用这种方法引入,根据Red Hat Enterprise Linux Application Streams Life Cycle – Red Hat Customer Portal,预计2025年11月将到达EOL。
之后可能不会执行对报告的漏洞和问题的解决。

日志

安装

# cat /etc/redhat-release
AlmaLinux release 9.2 (Turquoise Kodkod)

# yum module list nginx
Last metadata expiration check: 0:00:02 ago on Fri Jul  7 04:58:21 2023.
AlmaLinux 9 - AppStream
Name                       Stream                     Profiles                       Summary
nginx                      1.22                       common [d]                     nginx webserver

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

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

各种确认

# which nginx
/usr/sbin/nginx

# nginx -v
nginx version: nginx/1.22.1

# yum module info nginx:1.22
Last metadata expiration check: 0:00:46 ago on Fri Jul  7 04:58:21 2023.
Name             : nginx
Stream           : 1.22 [e] [a]
Version          : 9020020230413123848
Context          : 8cf767d6
Architecture     : x86_64
Profiles         : common [d] [i]
Default profiles : common
Repo             : appstream
Summary          : nginx webserver
Description      : nginx 1.22 webserver module
Requires         : platform:[el9]
Artifacts        : nginx-1:1.22.1-3.module_el9.2.0+20+2a475c1b.alma.src
                 : nginx-1:1.22.1-3.module_el9.2.0+20+2a475c1b.alma.x86_64
                 : nginx-all-modules-1:1.22.1-3.module_el9.2.0+20+2a475c1b.alma.noarch
                 : nginx-core-1:1.22.1-3.module_el9.2.0+20+2a475c1b.alma.x86_64
                 : nginx-core-debuginfo-1:1.22.1-3.module_el9.2.0+20+2a475c1b.alma.x86_64
                 : nginx-debuginfo-1:1.22.1-3.module_el9.2.0+20+2a475c1b.alma.x86_64
                 : nginx-debugsource-1:1.22.1-3.module_el9.2.0+20+2a475c1b.alma.x86_64
                 : nginx-filesystem-1:1.22.1-3.module_el9.2.0+20+2a475c1b.alma.noarch
                 : nginx-mod-devel-1:1.22.1-3.module_el9.2.0+20+2a475c1b.alma.x86_64
                 : nginx-mod-http-image-filter-1:1.22.1-3.module_el9.2.0+20+2a475c1b.alma.x86_64
                 : nginx-mod-http-image-filter-debuginfo-1:1.22.1-3.module_el9.2.0+20+2a475c1b.alma.x86_64
                 : nginx-mod-http-perl-1:1.22.1-3.module_el9.2.0+20+2a475c1b.alma.x86_64
                 : nginx-mod-http-perl-debuginfo-1:1.22.1-3.module_el9.2.0+20+2a475c1b.alma.x86_64
                 : nginx-mod-http-xslt-filter-1:1.22.1-3.module_el9.2.0+20+2a475c1b.alma.x86_64
                 : nginx-mod-http-xslt-filter-debuginfo-1:1.22.1-3.module_el9.2.0+20+2a475c1b.alma.x86_64
                 : nginx-mod-mail-1:1.22.1-3.module_el9.2.0+20+2a475c1b.alma.x86_64
                 : nginx-mod-mail-debuginfo-1:1.22.1-3.module_el9.2.0+20+2a475c1b.alma.x86_64
                 : nginx-mod-stream-1:1.22.1-3.module_el9.2.0+20+2a475c1b.alma.x86_64
                 : nginx-mod-stream-debuginfo-1:1.22.1-3.module_el9.2.0+20+2a475c1b.alma.x86_64

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled, [a]ctive
广告
将在 10 秒后关闭
bannerAds