WEBVTT

00:00.140 --> 00:00.560
Hey, everyone.

00:00.560 --> 00:01.510
And welcome back.

00:01.520 --> 00:06.980
Now in today's video, we will look into various different approaches that we have available to install

00:06.980 --> 00:08.330
and configure enginex.

00:08.330 --> 00:14.240
And once we understand that, then in the subsequent videos we look into how we can install Nginx in

00:14.240 --> 00:15.170
our own server.

00:15.200 --> 00:21.200
Now one important part to note here is that Enginex supports multiple different installation methods.

00:21.200 --> 00:26.000
The recommended one is you install Nginx directly on a Linux server.

00:26.000 --> 00:30.860
You also have a Windows based compatibility which is a beta based installation.

00:30.860 --> 00:32.720
So this is not at all recommended.

00:32.720 --> 00:39.080
You can also make use of Docker for configuring and installing Nginx provided that you are very familiar

00:39.080 --> 00:40.160
with Dockers.

00:40.190 --> 00:42.830
Now installing Nginx is very simple.

00:42.830 --> 00:50.060
All you need is you need a Linux server or a Linux virtual machine and then you install Nginx as a software

00:50.060 --> 00:50.990
on top of it.

00:51.020 --> 00:57.050
Now for this course we will primarily be using the Linux operating system for our Enginex practicals.

00:57.050 --> 01:03.030
And this is something that you will also see in most of the organizations that are implementing Nginx

01:03.030 --> 01:05.460
where they have a Linux based virtual machine.

01:05.460 --> 01:08.610
And on top of that we have the Nginx that is available.

01:08.610 --> 01:14.130
So one of the prerequisite here is that you need to have a Linux based VM.

01:14.130 --> 01:20.310
So discussing about how you can create a new Linux virtual machine for your testing environment, there

01:20.310 --> 01:22.920
are two primary methods that you can use.

01:22.920 --> 01:26.760
First one is using the VMware Workstation or VirtualBox.

01:26.760 --> 01:30.300
So a virtualization software as a overview.

01:30.300 --> 01:33.720
Or second one is you can directly launch a new server in cloud.

01:33.720 --> 01:38.460
So let's look into the approach one which makes use of a virtualization products.

01:38.460 --> 01:42.690
So basically in this approach you install various virtualization tools.

01:42.690 --> 01:48.810
It can be VMware Workstation, it can be VirtualBox, etcetera, directly on top of your laptop.

01:48.810 --> 01:52.320
Then you go ahead and create a new Linux based virtual machine.

01:52.320 --> 01:57.810
And once you have a Linux based virtual machine available on top of that you can install Nginx.

01:57.810 --> 02:03.360
So although this is good, but I would not really recommend it primarily because not only this will

02:03.360 --> 02:08.160
slow down your laptop if you do not really have a good hardware on top of it.

02:08.160 --> 02:11.880
And second is it can be also a little time consuming.

02:11.910 --> 02:16.860
The second recommended approach is to make use of a cloud service provider.

02:16.860 --> 02:22.860
So in this case you can choose a cloud service provider, whichever you are comfortable with, it can

02:22.860 --> 02:26.370
be AWS, Azure, GCP, Digitalocean, etcetera.

02:26.370 --> 02:32.910
Once you select the cloud provider, you can create a new server on top of it based on Linux, to be

02:32.910 --> 02:35.160
more precise, based on CentOS.

02:35.160 --> 02:41.700
And once you have a new server available, then you can directly go ahead and install Nginx on top of

02:41.700 --> 02:42.030
it.

02:42.060 --> 02:44.250
Now you also have a approach three.

02:44.250 --> 02:47.670
This is something that I would not really recommend to begin with.

02:47.700 --> 02:53.130
However, once you are very comfortable with Nginx and you are also comfortable with Docker, you can

02:53.130 --> 02:56.850
go ahead and launch a Nginx container based on Docker.

02:56.850 --> 03:02.490
So you can install Docker workstation in your laptop and you can directly go ahead and launch a Nginx

03:02.490 --> 03:03.780
based Docker container.

03:03.780 --> 03:09.150
So let me quickly go ahead and give you a glimpse of the approaches that we were discussing.

03:09.150 --> 03:14.880
Now, one of the approaches and also the recommended one is you go ahead and create a new server in

03:14.880 --> 03:19.200
a specific cloud service provider and you install Nginx on top of it.

03:19.230 --> 03:25.500
Now currently I have a test server that we are using for our demo environment and let me quickly show

03:25.500 --> 03:25.950
you.

03:25.950 --> 03:33.150
So currently if I do a systemctl status Nginx you currently have Nginx that is up and running.

03:33.150 --> 03:36.330
So this is on top of a CentOS based server.

03:36.450 --> 03:39.000
Now we were also discussing about Docker.

03:39.000 --> 03:45.450
So currently within my laptop I have a Docker workstation that is installed and currently I have one

03:45.450 --> 03:46.410
Nginx image.

03:46.410 --> 03:51.840
And within the container you see I have one container of Nginx that is running over here.

03:51.840 --> 03:58.680
So within the web browser, if I just type localhost followed by port of 80, if I press enter, you

03:58.680 --> 04:00.930
basically see a default nginx page.

04:00.930 --> 04:07.170
So this nginx is directly served through Docker installed on my laptop and the last method that we were

04:07.170 --> 04:10.020
discussing is to make use of a virtualization product.

04:10.020 --> 04:16.170
So this is good to begin with, but at a later stage when we cover a lot of interesting topics related

04:16.170 --> 04:22.470
to high availability, related to reverse proxy, etcetera, you need to have multiple virtual machines

04:22.470 --> 04:25.890
within your laptop and that will seriously slow down your laptop.

04:25.890 --> 04:30.450
And this is one of the reasons why we recommend to make use of a cloud service provider.

04:30.480 --> 04:35.730
Choose anyone you are comfortable with, launch a server and install Nginx directly on top of it.

04:35.730 --> 04:40.890
And once you are completed with your learning, you can just go ahead and directly delete the server

04:40.890 --> 04:42.900
to avoid any unexpected costs.

04:43.020 --> 04:48.900
So this is the high level overview on various approaches that you can use to create a Linux VM.

04:48.900 --> 04:53.220
Once you have a Linux VM available, you can install Nginx directly on top of it.

04:53.220 --> 04:55.380
So that's the high level overview.

04:55.380 --> 04:57.780
And with this we'll conclude today's video.
