Hey, everyone.
And welcome back.
Now in today's video, we will look into various different approaches that we have available to install
and configure enginex.
And once we understand that, then in the subsequent videos we look into how we can install Nginx in
our own server.
Now one important part to note here is that Enginex supports multiple different installation methods.
The recommended one is you install Nginx directly on a Linux server.
You also have a Windows based compatibility which is a beta based installation.
So this is not at all recommended.
You can also make use of Docker for configuring and installing Nginx provided that you are very familiar
with Dockers.
Now installing Nginx is very simple.
All you need is you need a Linux server or a Linux virtual machine and then you install Nginx as a software
on top of it.
Now for this course we will primarily be using the Linux operating system for our Enginex practicals.
And this is something that you will also see in most of the organizations that are implementing Nginx
where they have a Linux based virtual machine.
And on top of that we have the Nginx that is available.
So one of the prerequisite here is that you need to have a Linux based VM.
So discussing about how you can create a new Linux virtual machine for your testing environment, there
are two primary methods that you can use.
First one is using the VMware Workstation or VirtualBox.
So a virtualization software as a overview.
Or second one is you can directly launch a new server in cloud.
So let's look into the approach one which makes use of a virtualization products.
So basically in this approach you install various virtualization tools.
It can be VMware Workstation, it can be VirtualBox, etcetera, directly on top of your laptop.
Then you go ahead and create a new Linux based virtual machine.
And once you have a Linux based virtual machine available on top of that you can install Nginx.
So although this is good, but I would not really recommend it primarily because not only this will
slow down your laptop if you do not really have a good hardware on top of it.
And second is it can be also a little time consuming.
The second recommended approach is to make use of a cloud service provider.
So in this case you can choose a cloud service provider, whichever you are comfortable with, it can
be AWS, Azure, GCP, Digitalocean, etcetera.
Once you select the cloud provider, you can create a new server on top of it based on Linux, to be
more precise, based on CentOS.
And once you have a new server available, then you can directly go ahead and install Nginx on top of
it.
Now you also have a approach three.
This is something that I would not really recommend to begin with.
However, once you are very comfortable with Nginx and you are also comfortable with Docker, you can
go ahead and launch a Nginx container based on Docker.
So you can install Docker workstation in your laptop and you can directly go ahead and launch a Nginx
based Docker container.
So let me quickly go ahead and give you a glimpse of the approaches that we were discussing.
Now, one of the approaches and also the recommended one is you go ahead and create a new server in
a specific cloud service provider and you install Nginx on top of it.
Now currently I have a test server that we are using for our demo environment and let me quickly show
you.
So currently if I do a systemctl status Nginx you currently have Nginx that is up and running.
So this is on top of a CentOS based server.
Now we were also discussing about Docker.
So currently within my laptop I have a Docker workstation that is installed and currently I have one
Nginx image.
And within the container you see I have one container of Nginx that is running over here.
So within the web browser, if I just type localhost followed by port of 80, if I press enter, you
basically see a default nginx page.
So this nginx is directly served through Docker installed on my laptop and the last method that we were
discussing is to make use of a virtualization product.
So this is good to begin with, but at a later stage when we cover a lot of interesting topics related
to high availability, related to reverse proxy, etcetera, you need to have multiple virtual machines
within your laptop and that will seriously slow down your laptop.
And this is one of the reasons why we recommend to make use of a cloud service provider.
Choose anyone you are comfortable with, launch a server and install Nginx directly on top of it.
And once you are completed with your learning, you can just go ahead and directly delete the server
to avoid any unexpected costs.
So this is the high level overview on various approaches that you can use to create a Linux VM.
Once you have a Linux VM available, you can install Nginx directly on top of it.
So that's the high level overview.
And with this we'll conclude today's video.