Installing Latest Nginx on Ubuntu 16.04 Xenial LTS

September 23rd, 2016 by Regaz

Nginx QuickStart for Ubuntu 16.04 Xenial

The Linux Tutorial Shows You Step-by-Step How-to Install and Getting-Started with the Latest Nginx Web Server on Ubuntu 16.04 Xenial Xerus LTS 32/64bit Desktop/Server.

NGINX is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server.
NGINX is known for its high performance, stability, rich feature set, simple configuration, and low resource consumption.

It is Necessary to Manually Set Up the Apt Nginx Repo to Get Installed the Latest Mainline Release, because the Default Repos are Serving an Older Nginx Release…

Installing Latest Nginx for Ubuntu 16.04 Xenial - Featured
  1. Login as Super User

    sudo su
  2. Set Up the Nginx Mainline Apt Repo

    echo "deb xenial nginx" | sudo tee -a /etc/apt/sources.list.d/nginx.list
    echo "deb-src xenial nginx" | sudo tee -a /etc/apt/sources.list.d/nginx.list
  3. Add the Signing Key

    cd ~
    apt-key add nginx_signing.key
    rm nginx_signing.key
  4. Installing Nginx

    apt-get update
    apt-get -y install nginx
  5. Stop Apache & Restart Nginx (Only if Apache is Installed!)

    service apache2 stop
    service nginx restart
  6. Check Nginx Installation
    On a localhost:


    Or browse the Server IP…

  7. To Edit the Nginx Conf File

    nano /etc/nginx/conf.d/default.conf
  8. End the Super User Session

Share on Tumblr

Tags: , , , , , , , , , , , ,

Comments are disabled