Tutorial: Installing Nginx
#1
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:


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:

[Image: NdyCfS2.png]
[-] The following 1 user Likes SQUID-EYE's post:
  • Devil
Reply
#2
Oh wow this was very informative, thank you @SQUID-EYE

Always wanted to know more about nginx!
Reply
#3
Nice tutorial, but I do not know how I feel about the 'Hello NGU," part... Noh

[Image: H4JQn0Z.gif]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)