How to install Nginx on opensuse15.1
Installation Of Nginx on openSUSE15.1
Process
To check the installed version of operating system
LinuxHelp:~ # cat /etc/os-release
NAME="openSUSE Leap"
VERSION="15.1 "
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.1"
PRETTY_NAME="openSUSE Leap 15.1"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.1"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
Use the below command to install Nginx
LinuxHelp:~ # zypper install nginx
Retrieving repository 'Non-OSS Repository' metadata ..................................................[done]
…..
……
The following 2 NEW packages are going to be installed:
nginx vim-plugin-nginx
The following recommended package was automatically selected:
vim-plugin-nginx
2 new packages to install.
Overall download size: 849.1 KiB. Already cached: 0 B. After the operation, an additional 2.7 MiB will be used.
Press Y to show all option
Continue? [y/n/v/...? shows all options] (y): y
Retrieving: nginx-1.14.2-lp151.4.3.1.x86_64.rpm ........................................[done (352.4 KiB/s)]
(1/2) Installing: vim-plugin-nginx-1.14.2-lp151.4.3.1.noarch .........................................[done]
(2/2) Installing: nginx-1.14.2-lp151.4.3.1.x86_64 ....................................................[done]
Use below command to enable the nginx service
LinuxHelp:~ # systemctl enable nginx
Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → /usr/lib/systemd/system/nginx.service.
Use below command to start the service
LinuxHelp:~ # systemctl start nginx
To check the status of the Nginx service
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)
Active: active (running) since Tue 2019-10-22 03:30:40 IST; 18s ago
Process: 2853 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS)
Main PID: 2854 (nginx)
Tasks: 2 (limit: 19660)
CGroup: /system.slice/nginx.service
├─2854 nginx: master process /usr/sbin/nginx -g daemon off;
└─2859 nginx: worker process
…
….
Oct 22 03:30:40 LinuxHelp systemd[1]: Started The nginx HTTP and reverse proxy server.
Switch to htdocs directory to create index.html file
LinuxHelp:~ # cd /srv/www/htdocs/
Long listing the current directory
LinuxHelp:/srv/www/htdocs # ll
total 4
-rw-r--r-- 1 root root 537 Sep 5 19:42 50x.html
Create index file using vim editor
LinuxHelp:/srv/www/htdocs # vim index.html
<html>
<head>
<title>OpenSUSE Linux</title>
</head>
<body>
<h1>Welcome to LinuxHelp</h1>
<p>This is a test server for webserver</p>
<hr>
<small>Powered by nginx and OpenSUSE Linux server</small>
</body>
</html>
After created the index.html file, In browser type IP address of your system
Q
What is an “instance”?
A
NGINX products are licensed ‘per instance’. Each subscription allows you to run one single instance of the software for the subscription period.
Q
What is NGINX Plus and how is it different from NGINX open source?
A
please refer the link: https://www.nginx.com/products/nginx/#compare-versions
Q
How many requests can Nginx handle
A
nginx can handle up to 400k to 500k request per second
Q
What is the latest version of Nginx server?
A
version 1.17.4 is the latest version of Nginx server
Q
What is the usage Nginx?
A
Nginx is a free and open-source high-performance web server. It also acts as a reverse proxy server, mail proxy server, software load balancer, TLS terminator and caching server.