Projekt

Allgemein

Profil

Setup nginx » Historie » Version 2

Jeremias Keihsler, 19.10.2021 11:29

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 8.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://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-centos-8-de
13
14
h2. Install 
15
16 2 Jeremias Keihsler
there are multiple streams available.
17 1 Jeremias Keihsler
<pre><code class="bash">
18 2 Jeremias Keihsler
dnf module list | grep nginx
19
</code></pre>
20
21
as of 2021-10-19:
22
1.14 (default), 1.16, 1.18, mainline, 1.20
23
24
<pre><code class="bash">
25
dnf module enable nginx:1.18
26 1 Jeremias Keihsler
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>