How to install Nginx on Oracle Linux8.8
To install Nginx on Oracle Linux8.8
Introduction :
The NGINX (Engine X) web server and a reverse proxy are one of the most popular, powerful, and highly scalable open-source web servers. Because it's free, fast, stable, easy to configure, and consumes little resource, it can also be used as a load balancer, mail proxy, and HTTP cache.
Installation Steps:
Step 1: Check the version of the OS by using the below command
[root@linuxhelp ~]# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="8.8"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="8.8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Oracle Linux Server 8.8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:8:8:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://github.com/oracle/oracle-linux"
ORACLE_BUGZILLA_PRODUCT="Oracle Linux 8"
ORACLE_BUGZILLA_PRODUCT_VERSION=8.8
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=8.8
Step 2: Install Nginx package by using the below command
[root@linuxhelp ~]# yum install nginx
Oracle Linux 8 BaseOS Latest (x86_64) 42 kB/s | 3.6 kB 00:00
Oracle Linux 8 BaseOS Latest (x86_64) 10 MB/s | 59 MB 00:05
Oracle Linux 8 Application Stream (x86_64) 44 kB/s | 3.9 kB 00:00
Oracle Linux 8 Application Stream (x86_64) 9.8 MB/s | 47 MB 00:04
Latest Unbreakable Enterprise Kernel Release 6 23 kB/s | 3.0 kB 00:00
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
nginx x86_64 1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e ol8_appstream 569 k
Installing dependencies:
nginx-all-modules
noarch 1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e ol8_appstream 24 k
nginx-filesystem
noarch 1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e ol8_appstream 25 k
nginx-mod-http-image-filter
x86_64 1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e ol8_appstream 35 k
nginx-mod-http-perl
x86_64 1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e ol8_appstream 46 k
nginx-mod-http-xslt-filter
x86_64 1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e ol8_appstream 34 k
nginx-mod-mail
x86_64 1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e ol8_appstream 64 k
nginx-mod-stream
x86_64 1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e ol8_appstream 86 k
Enabling module streams:
nginx 1.14
Transaction Summary
================================================================================
Install 8 Packages
Total download size: 881 k
Installed size: 2.0 M
Is this ok [y/N]: y
Downloading Packages:
(1/8): nginx-filesystem-1.14.1-9.0.1.module+el8 232 kB/s | 25 kB 00:00
(2/8): nginx-all-modules-1.14.1-9.0.1.module+el 215 kB/s | 24 kB 00:00
(3/8): nginx-mod-http-image-filter-1.14.1-9.0.1 889 kB/s | 35 kB 00:00
(4/8): nginx-mod-http-xslt-filter-1.14.1-9.0.1. 1.2 MB/s | 34 kB 00:00
(5/8): nginx-1.14.1-9.0.1.module+el8.0.0+5347+9 3.0 MB/s | 569 kB 00:00
(6/8): nginx-mod-mail-1.14.1-9.0.1.module+el8.0 3.1 MB/s | 64 kB 00:00
(7/8): nginx-mod-stream-1.14.1-9.0.1.module+el8 2.9 MB/s | 86 kB 00:00
(8/8): nginx-mod-http-perl-1.14.1-9.0.1.module+ 167 kB/s | 46 kB 00:00
--------------------------------------------------------------------------------
Total 2.2 MB/s | 881 kB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: nginx-filesystem-1:1.14.1-9.0.1.module+el8.0.0+5347+ 1/8
Installing : nginx-filesystem-1:1.14.1-9.0.1.module+el8.0.0+5347+ 1/8
Installing : nginx-mod-http-image-filter-1:1.14.1-9.0.1.module+el 2/8
Running scriptlet: nginx-mod-http-image-filter-1:1.14.1-9.0.1.module+el 2/8
Installing : nginx-mod-http-perl-1:1.14.1-9.0.1.module+el8.0.0+53 3/8
Running scriptlet: nginx-mod-http-perl-1:1.14.1-9.0.1.module+el8.0.0+53 3/8
Installing : nginx-mod-http-xslt-filter-1:1.14.1-9.0.1.module+el8 4/8
Running scriptlet: nginx-mod-http-xslt-filter-1:1.14.1-9.0.1.module+el8 4/8
Installing : nginx-mod-mail-1:1.14.1-9.0.1.module+el8.0.0+5347+92 5/8
Running scriptlet: nginx-mod-mail-1:1.14.1-9.0.1.module+el8.0.0+5347+92 5/8
Installing : nginx-all-modules-1:1.14.1-9.0.1.module+el8.0.0+5347 6/8
Installing : nginx-1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e.x8 7/8
Running scriptlet: nginx-1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e.x8 7/8
Installing : nginx-mod-stream-1:1.14.1-9.0.1.module+el8.0.0+5347+ 8/8
Running scriptlet: nginx-mod-stream-1:1.14.1-9.0.1.module+el8.0.0+5347+ 8/8
Verifying : nginx-1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e.x8 1/8
Verifying : nginx-all-modules-1:1.14.1-9.0.1.module+el8.0.0+5347 2/8
Verifying : nginx-filesystem-1:1.14.1-9.0.1.module+el8.0.0+5347+ 3/8
Verifying : nginx-mod-http-image-filter-1:1.14.1-9.0.1.module+el 4/8
Verifying : nginx-mod-http-perl-1:1.14.1-9.0.1.module+el8.0.0+53 5/8
Verifying : nginx-mod-http-xslt-filter-1:1.14.1-9.0.1.module+el8 6/8
Verifying : nginx-mod-mail-1:1.14.1-9.0.1.module+el8.0.0+5347+92 7/8
Verifying : nginx-mod-stream-1:1.14.1-9.0.1.module+el8.0.0+5347+ 8/8
Installed:
nginx-1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e.x86_64
nginx-all-modules-1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e.noarch
nginx-filesystem-1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e.noarch
nginx-mod-http-image-filter-1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e.x86_64
nginx-mod-http-perl-1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e.x86_64
nginx-mod-http-xslt-filter-1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e.x86_64
nginx-mod-mail-1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e.x86_64
nginx-mod-stream-1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e.x86_64
Complete!
Step 3: Start the Nginx service by using the below command
[root@linuxhelp ~]# systemctl start nginx
Step 4: Enable the Nginx service by using the below command.
[root@linuxhelp ~]# systemctl enable nginx
Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → /usr/lib/systemd/system/nginx.service.
Step 5: Start the Nginx service by using the below command.
[root@linuxhelp ~]# systemctl status nginx
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor prese>
Active: active (running) since Fri 2023-06-30 07:06:50 IST; 40s ago
Main PID: 7878 (nginx)
Tasks: 3 (limit: 22856)
Memory: 7.6M
CGroup: /system.slice/nginx.service
├─7878 nginx: master process /usr/sbin/nginx
├─7879 nginx: worker process
└─7880 nginx: worker process
Jun 30 07:06:50 linuxhelp systemd[1]: Starting The nginx HTTP and reverse proxy>
Jun 30 07:06:50 linuxhelp nginx[7875]: nginx: the configuration file /etc/nginx>
Jun 30 07:06:50 linuxhelp nginx[7875]: nginx: configuration file /etc/nginx/ngi>
Jun 30 07:06:50 linuxhelp systemd[1]: Started The nginx HTTP and reverse proxy >
Step 6: Type localhost in Browser as shown in the below image
Conclusion:
We have reached the end of this article. In this guide, we have walked you through the steps required to install Nginx on Oracle Linux 8.8. Your feedback is much welcome.
Comments ( 0 )
No comments available