in

How to Install Nginx on Ubuntu 18.04.2 LTS[SERVER] & Manage it

Nginx on Ubuntu 18.04.2 LTS

N

ginx on Ubuntu 18.04: Nginx holds the Top list when it comes to a Web server. Its journey through the decades makes it more successful on Web Servers, Reverse Proxy, Load balancers, and a lot more. When it comes to Servers, it’s mostly Apache on Ubuntu or Nginx on Ubuntu. Though Microsoft has Azure, the combination of the above two seems more easy, convenient, and cost-effective. In this article, we will see How to Install, Manage, Configure, Start, Stop, Disable and more of Nginx on Server Side Ubuntu 18.04.2 LTS.

Jump to:

How to Install Nginx Server on Ubuntu 18.04.2 LTS:

Firstly, we will start by installing the Nginx Web Server on the Server Side Ubuntu 18.04.2 LTS.

$sudo apt update
$sudo apt install nginx

The above command will install Nginx Web Server on your Server Side Ubuntu 18.04.2 LTS.

How to Check Nginx Server Version on Ubuntu 18.04.2 LTS:

The following command has to be used to check the Nginx Web Server version that is installed on your Ubuntu 18.04

$nginx -V
Check Nginx Version
Check Nginx Version
Note: Using $ nginx -v just shows the Nginx version excluding other information related to it.

Check your Ubuntu Version on the Terminal:

Execute the following command on the terminal.

$   lsb_release -a

Start Nginx on Ubuntu 18.04.2 LTS:

Once Nginx is installed on your Server Side Ubuntu, then you can start the Nginx Web Server using the following command.

$sudo systemctl start nginx

Stop Nginx Web Server on Ubuntu 18.04.2 LTS:

If you wish to stop Nginx for some reasons, then you can use the following command to achieve that.

$sudo systemctl stop nginx

Restart Nginx Web server on Ubuntu 18.04:

If you had made any changes on your Server and if you want to restart it then kindly use the following command.

$sudo systemctl restart nginx

How to Enable & Disable Nginx on Booting of Ubuntu[Server]:

You can actually specify whether the Nginx Web server whether to load on the Ubuntu Booting. By default, Nginx starts automatically and configured to run. However, it can be enabled and disabled on Ubuntu using the following commands.

To Disable Nginx on Boot:

$sudo systemctl disable nginx

To Enable Nginx on Boot:

$sudo systemctl enable nginx

Status of Nginx Running on Ubuntu Server:

The following command will give the status of the Nginx Web server that is running on your Ubuntu Server.

$sudo systemctl nginx status
Check Niginx Status on Ubuntu
Check Nginx Status on Ubuntu
Note: You can also check the status using $   sudo service nginx status

Get in Touch with Us:

This article provides detailed information on the usage of Nginx Web server on Ubuntu 18.04.2 LTS(Server side) such as Install, Restart, Enable, Disable and more of Nginx Server on Ubuntu. If you have any Query then Kindly Comment Us and we will revert to you with a solution ASAP.

Article Review
  • 95%
    Article Quality - 95%
  • 88%
    Content Depth - 88%
  • 90%
    Explanation - 90%
  • 99%
    Efficiency - 99%
93%

Summary

For more interesting articles, Kindly Visit

Leave a Reply

Your email address will not be published. Required fields are marked *

Written by Ranger

Hey Guys, How you doing? I am Ranger and I am from Philadelphia. Actually, I am a very Lazy person with an active mind and a lazy body and mostly sleeping because of that. Foods and Places are my favorite and I would love to explore places. Contact me through the Contact Us page adding "@Ranger" on the Subject.

Notepad++ Linux- Install Notepad++ on Linux Ubuntu 18.04/16.04, 19.04 & More

Apache HTTP Project

5+ Ways To Restart Your Apache Server On Ubuntu 18.04, 18.04.2 & 19.04 Disco Dingo