How to install, start, stop and restart ngnix on ubuntu
Nginx gets installed as a system service. If you are manually setting up an Ubuntu vps on digitalocean, aws, ubuntu, cloudfare, heroku etc and are using nginx, you might find this handy.
Install Nginx
sudo apt-get install nginx
Start Nginx
sudo service nginx start
Stop Nginx
sudo service nginx stop
Restar Nginx
sudo service nginx restart