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

首先

利用Application Stream(AppStream)在AlmaLinux8上安装Nginx1.14
主要内容:Nginx的各种安装方法和EOL总结

支持

如果使用本方法进行引入,根据红帽企业版Linux应用流生命周期-红帽客户门户网站,2021年5月可能被认为已经过期。
之后可能不会进行对报告的漏洞和问题的响应。

记录

安装

# 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.14
... 略

确认的各种形式

# which nginx
/usr/sbin/nginx

# nginx -v
nginx version: nginx/1.14.1

# yum module info nginx:1.14
Last metadata expiration check: 0:01:12 ago on Fri Jul  7 04:22:43 2023.
Name             : nginx
Stream           : 1.14 [d][e][a]
Version          : 8030020210419100506
Context          : f8e95b4e
Architecture     : x86_64
Profiles         : common [d] [i]
Default profiles : common
Repo             : appstream
Summary          : nginx webserver
Description      : nginx 1.14 webserver module
Requires         : platform:[el8]
Artifacts        : nginx-1:1.14.1-9.module_el8.3.0+2165+af250afe.alma.src
                 : nginx-1:1.14.1-9.module_el8.3.0+2165+af250afe.alma.x86_64
                 : nginx-all-modules-1:1.14.1-9.module_el8.3.0+2165+af250afe.alma.noarch
                 : nginx-debuginfo-1:1.14.1-9.module_el8.3.0+2165+af250afe.alma.x86_64
                 : nginx-debugsource-1:1.14.1-9.module_el8.3.0+2165+af250afe.alma.x86_64
                 : nginx-filesystem-1:1.14.1-9.module_el8.3.0+2165+af250afe.alma.noarch
                 : nginx-mod-http-image-filter-1:1.14.1-9.module_el8.3.0+2165+af250afe.alma.x86_64
                 : nginx-mod-http-image-filter-debuginfo-1:1.14.1-9.module_el8.3.0+2165+af250afe.alma.x86_64
                 : nginx-mod-http-perl-1:1.14.1-9.module_el8.3.0+2165+af250afe.alma.x86_64
                 : nginx-mod-http-perl-debuginfo-1:1.14.1-9.module_el8.3.0+2165+af250afe.alma.x86_64
                 : nginx-mod-http-xslt-filter-1:1.14.1-9.module_el8.3.0+2165+af250afe.alma.x86_64
                 : nginx-mod-http-xslt-filter-debuginfo-1:1.14.1-9.module_el8.3.0+2165+af250afe.alma.x86_64
                 : nginx-mod-mail-1:1.14.1-9.module_el8.3.0+2165+af250afe.alma.x86_64
                 : nginx-mod-mail-debuginfo-1:1.14.1-9.module_el8.3.0+2165+af250afe.alma.x86_64
                 : nginx-mod-stream-1:1.14.1-9.module_el8.3.0+2165+af250afe.alma.x86_64
                 : nginx-mod-stream-debuginfo-1:1.14.1-9.module_el8.3.0+2165+af250afe.alma.x86_64

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