Hinweis: Installieren Sie nginx aus dem offiziellen Repository unter CentOS 8 mit dnf

Verfahren

Zum Repository hinzufügen

/etc/yum.repos.d/nginx.repo


[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/mainline/centos/$releasever/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key

Schließen Sie AppStream aus und verweisen Sie auf das obige Repository

$ dnf --disablerepo=AppStream info nginx
nginx repo                                                                               22 kB/s |  47 kB     00:02
Available Packages
Name         : nginx
Epoch        : 1
Version      : 1.19.3
Release      : 1.el8.ngx
Architecture : x86_64
Size         : 814 k
Source       : nginx-1.19.3-1.el8.ngx.src.rpm
Repository   : nginx
Summary      : High performance web server
URL          : http://nginx.org/
License      : 2-clause BSD-like license
Description  : nginx [engine x] is an HTTP and reverse proxy server, as well as
             : a mail proxy server.

Installation

$ sudo dnf --disablerepo=AppStream install nginx
nginx repo                                                                               27 kB/s |  47 kB     00:01
Last metadata expiration check: 0:00:01 ago on Tue 06 Oct 2020 01:45:05 AM UTC.
Dependencies resolved.
========================================================================================================================
 Package                 Architecture             Version                                 Repository               Size
========================================================================================================================
Installing:
 nginx                   x86_64                   1:1.19.3-1.el8.ngx                      nginx                   814 k

Transaction Summary
========================================================================================================================
Install  1 Package

Total download size: 814 k
Installed size: 2.8 M
Is this ok [y/N]:y ← y Antwort
Downloading Packages:
nginx-1.19.3-1.el8.ngx.x86_64.rpm                                                       302 kB/s | 814 kB     00:02
------------------------------------------------------------------------------------------------------------------------Total                                                                                   302 kB/s | 814 kB     00:02
warning: /var/cache/dnf/nginx-f354473966140c6b/packages/nginx-1.19.3-1.el8.ngx.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 7bd9bf62: NOKEY
nginx repo                                                                              1.4 kB/s | 1.5 kB     00:01
Importing GPG key 0x7BD9BF62:
 Userid     : "nginx signing key <[email protected]>"
 Fingerprint: 573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62
 From       : https://nginx.org/keys/nginx_signing.key
Is this ok [y/N]:y ← y Antwort
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                1/1
  Running scriptlet: nginx-1:1.19.3-1.el8.ngx.x86_64                                                                1/1
  Installing       : nginx-1:1.19.3-1.el8.ngx.x86_64                                                                1/1
  Running scriptlet: nginx-1:1.19.3-1.el8.ngx.x86_64                                                                1/1
----------------------------------------------------------------------

Thanks for using nginx!

Please find the official documentation for nginx here:
* http://nginx.org/en/docs/

Please subscribe to nginx-announce mailing list to get
the most important news about nginx:
* http://nginx.org/en/support.html

Commercial subscriptions for nginx are available on:
* http://nginx.com/products/

----------------------------------------------------------------------

  Verifying        : nginx-1:1.19.3-1.el8.ngx.x86_64                                                                1/1

Installed:
  nginx-1:1.19.3-1.el8.ngx.x86_64

Complete!

Anlaufen

$ sudo systemctl start nginx

Automatische Starteinstellung

$ sudo systemctl enable nginx

Halt

$ sudo systemctl stop nginx

Recommended Posts

Hinweis: Installieren Sie nginx aus dem offiziellen Repository unter CentOS 8 mit dnf
Installieren Sie Apache 2.4.46 von der Quelle unter CentOS 7
Installieren Sie samba4 aus dem Quellcode unter CentOS8
Installieren Sie NextCloud unter CentOS 7 mit Alibaba Cloud ECS
Befehl zum Installieren von nginx / PHP7 / php-fpm unter CentOS7
Notizbuch: OpenCV mit CUDA-Installation unter Windows 10
Installieren Sie Neo4j 4.1.3 unter centOS
Installieren Sie Vertica 10.0 unter CentOS 6.10
Installieren Sie PostgreSQL 12 auf Centos8
Installieren Sie Python 3 unter CentOS 7
Installieren Sie kuromoji unter CentOS7
Installieren Sie PostGIS 2.5.5 unter CentOS7
Installieren Sie jpndistrict unter CentOS 7
Installieren Sie Redmine 4.1.1 unter CentOS 7
Smokeping Installation unter CentOS7
Installieren Sie PostgreSQL 13 unter CentOS 7.5
Installieren Sie den neuesten Hardwaretreiber von EL Repo unter CentOS
Netzwerkinstallation CentOS 8 mit Kickstart.
Installieren Sie OpenFOAM v2006 unter CentOS
Installieren Sie Jenkins auf Dockers CentOS
Installieren Sie Apache unter CentOS auf VirtualBox
Installieren Sie Ruby 2.7 unter CentOS 7 (SCL)
Hinweis: Installieren Sie PostgreSQL 9.5 unter Ubuntu 18.04
Installieren Sie Ruby mit pacman auf MSYS2
Installieren Sie Ruby 2.5 unter CentOS 7 mit SCL
Java Open JDK 8 unter CentOS 7 installieren
Notizbuch: OpenBLAS-Installation unter Windows 10
WordPress mit Docker Compose unter CentOS 8
So installieren Sie MariaDB 10.4 unter CentOS 8
Notizbuch: LAPACK-Installation unter Windows 10
Schritte zum Installieren von devtoolset-6 unter CentOS 7
Notizbuch: VTK-Installation unter Windows 10
Installieren Sie Ruby unter Ubuntu 20.04 mit rbenv
Verwenden Sie Docker CE (Official) mit CentOS 8
Installieren Sie Java 9 unter Windows 10 und CentOS 7
Erstellen Sie mit CentOS7 + Nginx + pm2 + Nuxt.js eine Entwicklungsumgebung auf AWS EC2
Installieren Sie imagick unter macOS Catalina + php 7.4 Hinweis
Installieren Sie den Webmail-Client Rainloop unter CentOS 8
So installieren Sie Beta PHP8.0 unter CentOS8
Installieren Sie Java8 mit Yum unter Amazon Linux
Persönliche Tipps zur Arbeit mit CentOS-Servern
Installieren Sie CentOS 7 auf Raspberry pi 4 Model B.
Notizbuch: OpenCV v4.5.0 mit Alphamat-Installation unter Windows 10 Es benötigt jedoch Eigen
Ein kurzer Hinweis zur Verwendung von jshell mit dem offiziellen Docker-Image des JDK