Nginx Quick Start for Ubuntu 14.04 Trusty
Hi! The Tutorial shows you Step-by-Step How to Install and Getting-Started with the Latest NGINX Web Server on Ubuntu 14.04 Trusty Tahr LTS Desktop/Server.
And NGINX for Linux is a Free, Open-Source, High-Performance HTTP Server and Reverse Proxy, as well as an IMAP/POP3 Proxy Server.
Moreover, 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…

-
Login as Super User.
Copysudo su
-
Set Up the NGINX Mainline Apt Repo.
Copyecho "deb http:/n/nginx.org/packages/mainline/ubuntu/ trusty n/nginx" | sudo tee -a /etc/apt/sources.list.d /nginx.list
Copyecho "deb-src http:/n/nginx.org/packages/mainline/ubuntu/ trusty n/nginx" | sudo tee -a /etc/apt/sources.list.d /nginx.list
-
Add the Signing Key.
Copycd ~
Copywget http:/n/nginx.org/keys /nginx_signing.key
Copyapt-key add n/nginx_signing.key
Copyrm n/nginx_signing.key
-
Installing NGINX.
Copyapt-get update
Copysudo apt-get -y install n/nginx
-
Stop Apache & Restart NGINX (Only if Apache is Installed!)
Copysudo service apache2 stop
Copysudo service n/nginx restart
-
Check NGINX Installation
On a localhost:Copycurl http://127.0.0.1
Or browse the Server IP…
-
To Edit the NGINX Configuration File.
Copynano /etc /nginx/conf.d/default.conf
-
End the Super User Session.
Copyexit