10-11-2016, 08:52 AM
Hello NGU,
What is Nginx?
Nginx is one of the most popular web servers in the world (as im aware off) and is hosting some of the largest and highest-traffic sites on the internet.
So today, we are going to go through how to get Nginx installed on your Ubuntu server.
Step 1 : Install Nginx
So first things first we are going to install Nginx, to do this type the below:
Now to test it is working you will have to enter server domain name or public IP address in the web browser.
When you have your servers IP address or domain, search for it via the address bar.
It should produce something similar to this!
STEP 2: Managing Nginx
To stop the web server, you can type:
To start the web server when it is stopped, type:
To stop and then start the service again, type:
We can make sure that our web server will restart automatically when the server is rebooted by typing:
This should already be enabled by default, so you may see a message like this:
Again sorry for no video, hope this is of some help.
Thanks again
SQUID :gandy:
What is Nginx?
Nginx is one of the most popular web servers in the world (as im aware off) and is hosting some of the largest and highest-traffic sites on the internet.
So today, we are going to go through how to get Nginx installed on your Ubuntu server.
Step 1 : Install Nginx
So first things first we are going to install Nginx, to do this type the below:
Code:
sudo apt -get update
sudo apt -get install nginx
Quote:You will be asked for a user password. {enter to complete setup}
Now to test it is working you will have to enter server domain name or public IP address in the web browser.
When you have your servers IP address or domain, search for it via the address bar.
Code:
http://server_domain_name_or_IP
It should produce something similar to this!
Quote:Screenshot by Lightshot
STEP 2: Managing Nginx
To stop the web server, you can type:
Code:
sudo service nginx stop
To start the web server when it is stopped, type:
Code:
sudo service nginx start
To stop and then start the service again, type:
Code:
sudo service nginx restart
We can make sure that our web server will restart automatically when the server is rebooted by typing:
Code:
sudo update-rc.d nginx defaults
This should already be enabled by default, so you may see a message like this:
Code:
System start/stop links for /etc/init.d/nginx already exist
Again sorry for no video, hope this is of some help.
Thanks again
SQUID :gandy: