Nginx 1.20 版本安装
使用 dnf module 选择 nginx 版本,如果不选择,默认安装 1.14 版
1、先 RESET 一下
[xxx@ecs-209716 ~]$ sudo dnf module reset nginx
Repository extras is listed more than once in the configuration
Last metadata expiration check: 2:51:44 ago on Fri 16 Dec 2022 03:57:21 PM CST.
Dependencies resolved.
===================================================================
Package Architecture Version Repository Size
===================================================================
Resetting modules: nginx
Transaction Summary
====================================================================
Is this ok [y/N]: y
Complete!
2、选择版本,这里选择最新的 1.20
[xxx@ecs-209716 ~]$sudo dnf module enable nginx:1.20
Repository extras is listed more than once in the configuration
Last metadata expiration check: 2:52:00 ago on Fri 16 Dec 2022 03:57:21 PM CST.
Dependencies resolved.
============================================================
Package Architecture Version Repository Size
================================================&