Wiki‎ > ‎

Disable ubuntu nginx web server

posted Jul 28, 2015, 7:04 PM by Dong Xu

sudo service nginx stop

To
disable autostart nginx service

sudo update-rc.d -f nginx disable


apt-get remove nginx
vs.
apt-get purge nginx


First one removes all package files, while the second also removes the configuration
files. If you intend to use nginx later on with the configuration you did, use remove.
Else, I would suggest using purge.

https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-14-04-lts
Comments