Install nginx on Ubuntu

Step One—Install nginx
open terminal and type in:

Step Two—Start nginx
nginx does not start on its own. To get nginx running on your VPS, type:

Step Three—RESULTS: Confirm That nginx Has Started
You can confirm that nginx has been installed as your web server by directing your browser to your IP address.

To ensure that nginx will be up after reboots, it’s best to add it to the startup.
Type this command into terminal:

You may see a message like:
System start/stop links for /etc/init.d/nginx already exist.