Install Nginx – Ubuntu 16.04

Installing Nginx on Ubuntu 16.04 is pretty straight forward, start off by updating the sources on your box:

sudo apt-get update

Issue the following to install nginx:

sudo apt-get install nginx

Start nginx by issuing the following:

sudo service nginx start

Add the service to startup:

sudo update-rc.d nginx enable

That’s it, you’re good to go.