How to Install Nginx on Oracle Linux
To Install Nginx on Oracle Linux
Introduction :
NGINX (Engine X) is one of the most popular, powerful, and high-performance open-source HTTP web servers and reverse proxies that has an event-driven architecture and can also be used as a load balancer, mail proxy, and HTTP cache since it is free, fast, stable, easy to configure, and consumes little resources.
Installation steps :
Step 1 : check the version of the OS
[root@linuxhelp ~]# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="8.4"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="8.4"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Oracle Linux Server 8.4"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:8:4:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://bugzilla.oracle.com/"
Step 2 : Install Nginx package
[root@linuxhelp ~]# yum install nginx
Last metadata expiration check: 0:21:06 ago on Friday 17 December 2021 07:08:27 AM IST.
Dependencies resolved.
============================================================================================================================================
Package Architecture 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-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
Transaction Summary
============================================================================================================================================
Install 7 Packages
Total download size: 857 k
Installed size: 2.0 M
Is this ok [y/N]: y
Step 3 : start the Nginx service.
[root@linuxhelp ~]# systemctl start nginx
Step 4 : Enable the Nginx service.
[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.
[root@linuxhelp ~]# systemctl status nginx
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/nginx.service.d
└─php-fpm.conf
Active: active (running) since Fri 2021-12-17 07:30:08 IST; 4min 35s ago
Main PID: 5058 (nginx)
Tasks: 2 (limit: 24798)
Memory: 3.7M
CGroup: /system.slice/nginx.service
├─5058 nginx: master process /usr/sbin/nginx
└─5059 nginx: worker process
Dec 17 07:30:08 linuxhelp systemd[1]: Starting The nginx HTTP and reverse proxy server...
Dec 17 07:30:08 linuxhelp nginx[5055]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
Dec 17 07:30:08 linuxhelp nginx[5055]: nginx: configuration file /etc/nginx/nginx.conf test is successful
Dec 17 07:30:08 linuxhelp systemd[1]: Started The nginx HTTP and reverse proxy server.
Step 6 : Type localhost in Browser
With this Installation of Nginx on oracle linux has comes to an End
Comments ( 0 )
No comments available