Install Latest Stable Version of NGINX in Ubuntu

NGINX is the best web server for almost everything. It can handle massive web traffic while consuming fewer hardware resources. By default, you can install NGINX on Ubuntu with command apt-get install nginx, but this will not install the latest version of NGINX.


So, How to Install Latest Stable Version of NGINX?

To always install the latest version of NGINX in Ubuntu, make sure that it is installed from PPA Repository. It will always fetch the new updates while entering the command apt-get update.

Install Latest Stable Version of NGINX in Ubuntu

Now I will demonstrate how to install the latest version of NGINX in 3 steps.

Step #1. Install Dependencies

sudo apt-get install python-software-properties

Step #2. Add Stable NGINX Repository

sudo add-apt-repository ppa:nginx/stable

If it asks for signing key then allow it with Y (Yes) option.

Step #3. Install NGINX

First lets hit the update servers first to fetch the updates and latest security patches.

sudo apt-get update

Then install NGINX.

sudo apt-get install nginx

It will install latest available stable NGINX.

Published by AtulHost

Creator of AtulHost. An ardent Linux user. Comes from a business management background. Loves to do research on modern business insights and enterprise solutions like career, education, finance, investments ideas, marketing strategies, and productivity skills; technological trends like automation, artificial intelligence, cloud and edge computing, computer hardware and networking, data science, and the internet of things.

Join the discussion

Required fields are asterisked and email address will not be shared.

Ensure a friendly atmosphere to our members and visitors. Encourage the freedom of expression and exchange of information. Comments that are off-topic will be deleted.