How to install, start, stop and restart ngnix on ubuntu

Nginx gets installed as a sys­tem service.

If you are man­u­ally set­ting up an Ubuntu vps on dig­i­talo­cean, aws, ubuntu, cloud­fare, 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

Ryan Sukale

Ryan is a UX engineer living in San Francisco, California.

You may also like...