Projekt

Allgemein

Profil

Setup nginx » Historie » Version 1

Jeremias Keihsler, 28.07.2025 16:21

1 1 Jeremias Keihsler
h1. Install Procedure for nginx
2
3
h2. Requirements
4
5
To install apache you will need the following:
6
* a installed and supported operating system (e.g. CentOS 9.x)
7
* root-access
8
* a fast internet connection
9
10
h2. Preliminary Note
11
12
This procedure is based on a documentation supplied by https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/deploying_web_servers_and_reverse_proxies/setting-up-and-configuring-nginx_deploying-web-servers-and-reverse-proxies
13
14
h2. Install 
15
16
there are multiple streams available.
17
<pre><code class="bash">
18
dnf module list | grep nginx
19
</code></pre>
20
21
as of 2025-07-28:
22
1.22, 1.24, 1.26
23
24
<pre><code class="bash">
25
dnf module enable nginx:1.26
26
dnf install nginx
27
</code></pre>
28
29
h2. Service 
30
31
<pre><code class="bash">
32
systemctl start nginx
33
systemctl enable nginx
34
</code></pre>
35
36
h2. Firewall 
37
38
<pre><code class="bash">
39
firewall-cmd --permanent --zone=public --add-service=http
40
firewall-cmd --permanent --zone=public --add-service=https
41
firewall-cmd --reload
42
</code></pre>