Nginx is an open-source, high-performance web server that commands a huge market share in production environments. It’s a lightweight and robust web server that is mostly used in hosting high-traffic websites.


Steps to install Nginx Web Server on Ubuntu 20.04


1] Prior to installation of Nginx, Update server’s package lists by using the following command:

 $ sudo apt update


2] Install Nginx by running the command:

 $ sudo apt install Nginx


When prompted to continue, press ‘Y’ on the keyboard and hit ENTER. The installation will be completed in a few seconds.


3] Post successful installation of Nginx, we can verify it by running:

$ sudo systemct1 start nginx
$ sudo systemct1 status nginx


The above output indicates that nginx is running.


4] To check the version of Nginx, run:

$ sudo dpkg -1 nginx


It will display the version of Nginx.

Was this answer helpful? 0 Users Found This Useful (0 Votes)