Install NGINX on Ubuntu

Install NGINX on Ubuntu

Install NGINX on Ubuntu

Following is a step by step guide to install NGINX on Ubuntu.

  1. Get the public key to verify signatures while installing

    $ sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys $key
  2. Update all packages

    $ sudo apt-get update
  3. Install NGINX

    $ sudo apt-get install nginx
  4. Verify the installation of NGINX

    Run the following command to display the version of NGINX.

    $ sudo nginx -v
     

Conclusion :

In this NGINX Tutorial, we have successfully learnt to install NGINX on Ubuntu.